Skip to content

Commit 994be5b

Browse files
authored
feat: update "upload my data" ui (#741) (#743)
* feat: update "upload my data" ui (#741) * feat: updated title text (#741) --------- Co-authored-by: Fran McDade <[email protected]>
1 parent 3e2e88b commit 994be5b

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/SequencingStep/components/UploadMyData/constants.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
import { PALETTE } from "@databiosphere/findable-ui/lib/styles/common/constants/palette";
21
import styled from "@emotion/styled";
3-
import { Paper } from "@mui/material";
2+
import { Alert } from "@mui/material";
43

5-
export const StyledPaper = styled(Paper)`
6-
background-color: ${PALETTE.SMOKE_LIGHT};
7-
display: grid;
8-
gap: 8px;
9-
justify-items: center;
10-
padding: 24px;
11-
text-align: center;
4+
export const StyledAlert = styled(Alert)`
5+
padding: 20px;
126
width: 100%;
137
`;
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
import { Props } from "./types";
2-
import { StyledPaper } from "./uploadMyData.styles";
3-
import { Typography } from "@mui/material";
2+
import { Typography, AlertTitle } from "@mui/material";
43
import { TYPOGRAPHY_PROPS } from "@databiosphere/findable-ui/lib/styles/common/mui/typography";
5-
import { PAPER_PROPS } from "./constants";
4+
import { ALERT_PROPS } from "@databiosphere/findable-ui/lib/components/common/Alert/constants";
65
import { useEffect } from "react";
6+
import { StyledAlert } from "./uploadMyData.styles";
77

88
export const UploadMyData = ({ onConfigure, stepKey }: Props): JSX.Element => {
99
useEffect(() => {
1010
onConfigure(stepKey, []);
1111
}, [onConfigure, stepKey]);
1212
return (
13-
<StyledPaper {...PAPER_PROPS}>
14-
<Typography
15-
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
16-
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_400}
17-
>
18-
I&#39;ll upload my data directly to Galaxy.
13+
<StyledAlert {...ALERT_PROPS.STANDARD_INFO}>
14+
<AlertTitle variant={TYPOGRAPHY_PROPS.VARIANT.BODY_LARGE_500}>
15+
Upload Your Data in Galaxy
16+
</AlertTitle>
17+
<Typography variant={TYPOGRAPHY_PROPS.VARIANT.BODY_400_2_LINES}>
18+
You will have an opportunity to upload your own data to your Galaxy
19+
history.
1920
</Typography>
20-
</StyledPaper>
21+
</StyledAlert>
2122
);
2223
};

0 commit comments

Comments
 (0)