Skip to content

Commit 93a25d1

Browse files
committed
refactor: 💡 fix progress stepp
1 parent 27b4e86 commit 93a25d1

3 files changed

Lines changed: 26 additions & 40 deletions

File tree

frontend/src/components/base/progress-step.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Spacer,
99
StyleableFlexContainer,
1010
} from "./flex";
11-
import { Subheading } from "./headings";
1211

1312
const StepConnector = styled(StyleableFlexContainer)`
1413
position: relative;
@@ -113,8 +112,7 @@ export const ProgressStep = ({
113112
</StepContainer>
114113
<Spacer />
115114
<FlexRowColumnContainer>
116-
<Subheading text={title} />
117-
115+
<h2 style={{ marginTop: "-0.2rem" }}>{title}</h2>
118116
{children}
119117
</FlexRowColumnContainer>
120118
<Spacer /> <Spacer />

frontend/src/components/base/text-input.tsx

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
import { css } from "@emotion/core";
2-
import styled from "@emotion/styled";
31
import * as React from "react";
42
import { useCallback } from "react";
53
import { useFocus } from "../../hooks/use-focus";
64
import { FormField } from "./form-field";
75
import { TextField } from "@mui/material";
86

9-
const FieldStyle = css`
10-
width: 100%;
11-
padding: 0.75rem 0.5rem;
12-
font-size: 14px;
13-
border: none;
14-
`;
15-
16-
const Area = styled.textarea`
17-
${FieldStyle}
18-
resize: vertical;
19-
`;
20-
217
/**
228
* The type of the text input.
239
*/
@@ -63,7 +49,6 @@ export const TextInput = ({
6349
isDisabled = false,
6450
name,
6551
description,
66-
rows,
6752
}: ITextInputProps) => {
6853
const [isFocused, onFocus, onBlur] = useFocus(autoFocus);
6954
const fieldType = type || TextInputType.Text;
@@ -92,23 +77,20 @@ export const TextInput = ({
9277
),
9378
};
9479

95-
const field =
96-
fieldType === TextInputType.Area ? (
97-
<Area {...fieldProps} rows={rows} />
98-
) : (
99-
<div>
100-
<TextField
101-
style={{ marginTop: "0.5rem" }}
102-
type={fieldType}
103-
id="outlined-basic"
104-
variant="outlined"
105-
label={description}
106-
fullWidth
107-
focused={isFocused}
108-
{...fieldProps}
109-
/>
110-
</div>
111-
);
80+
const field = (
81+
<div>
82+
<TextField
83+
style={{ marginTop: "0.5rem" }}
84+
type={fieldType}
85+
id="outlined-basic"
86+
variant="outlined"
87+
label={description}
88+
fullWidth
89+
focused={isFocused}
90+
{...fieldProps}
91+
/>
92+
</div>
93+
);
11294

11395
return (
11496
<FormField title={title} mandatory={mandatory}>

frontend/src/components/routers/sidebar/sidebar.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,17 @@ export const Sidebar = () => {
172172
<div style={{ bottom: "1rem", position: "absolute" }}>
173173
<LI>
174174
<div style={{ display: "flex", padding: "1rem" }}>
175-
<img
176-
style={{ borderRadius: "5rem" }}
177-
height={50}
178-
src={getGravatarUrl(user?.email ?? "", "50")}
179-
/>
175+
<a
176+
href="https://www.gravatar.com/"
177+
target="_blank"
178+
rel="noreferrer"
179+
>
180+
<img
181+
style={{ borderRadius: "5rem" }}
182+
height={50}
183+
src={getGravatarUrl(user?.email ?? "", "50")}
184+
/>
185+
</a>
180186
<div
181187
style={{
182188
padding: "0.8rem",

0 commit comments

Comments
 (0)