-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#514] chore: format all using prettier
- Loading branch information
1 parent
4fa2dc0
commit 8841a24
Showing
100 changed files
with
1,150 additions
and
1,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
"semi": true, | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"", | ||
"printWidth": 80 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 14 additions & 15 deletions
29
govtool/frontend/src/components/atoms/FormErrorMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import { Typography } from '@mui/material'; | ||
import { Typography } from "@mui/material"; | ||
|
||
import { FormErrorMessageProps } from './types'; | ||
import { FormErrorMessageProps } from "./types"; | ||
|
||
export const FormErrorMessage = ({ | ||
errorMessage, | ||
errorStyles, | ||
}: FormErrorMessageProps) => ( | ||
}: FormErrorMessageProps) => | ||
errorMessage && ( | ||
<Typography | ||
color="red" | ||
data-testid={`${errorMessage.replace(/\s+/g, '-').toLowerCase()}-error`} | ||
fontSize={12} | ||
fontWeight={400} | ||
sx={{ mt: 0.25 }} | ||
{...errorStyles} | ||
> | ||
{errorMessage} | ||
</Typography> | ||
) | ||
); | ||
<Typography | ||
color="red" | ||
data-testid={`${errorMessage.replace(/\s+/g, "-").toLowerCase()}-error`} | ||
fontSize={12} | ||
fontWeight={400} | ||
sx={{ mt: 0.25 }} | ||
{...errorStyles} | ||
> | ||
{errorMessage} | ||
</Typography> | ||
); |
29 changes: 14 additions & 15 deletions
29
govtool/frontend/src/components/atoms/FormHelpfulText.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
import { Typography } from '@mui/material'; | ||
import { Typography } from "@mui/material"; | ||
|
||
import { FormHelpfulTextProps } from './types'; | ||
import { FormHelpfulTextProps } from "./types"; | ||
|
||
export const FormHelpfulText = ({ | ||
helpfulText, | ||
helpfulTextStyle, | ||
}: FormHelpfulTextProps) => ( | ||
}: FormHelpfulTextProps) => | ||
helpfulText && ( | ||
<Typography | ||
color="#9792B5" | ||
data-testid={`${helpfulText.replace(/\s+/g, '-').toLowerCase()}-error`} | ||
fontSize={12} | ||
fontWeight={400} | ||
sx={{ mt: 0.5 }} | ||
{...helpfulTextStyle} | ||
> | ||
{helpfulText} | ||
</Typography> | ||
) | ||
); | ||
<Typography | ||
color="#9792B5" | ||
data-testid={`${helpfulText.replace(/\s+/g, "-").toLowerCase()}-error`} | ||
fontSize={12} | ||
fontWeight={400} | ||
sx={{ mt: 0.5 }} | ||
{...helpfulTextStyle} | ||
> | ||
{helpfulText} | ||
</Typography> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Box } from '@mui/material'; | ||
import { SpacerProps } from '.'; | ||
import { Box } from "@mui/material"; | ||
import { SpacerProps } from "."; | ||
|
||
export const Spacer = ({ x, y }: SpacerProps) => <Box pt={y} pr={x} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.