Skip to content

Commit

Permalink
Update .prettierrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunock committed Mar 25, 2024
1 parent fbd3c68 commit e3317a8
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tabWidth": 4,
"printWidth": 100,
"singleQuote": true,
"jsxSingleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSameLine": false,
"bracketSpacing": false
Expand Down
2 changes: 1 addition & 1 deletion src/popup/AppShell/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export default function AppShell(props: {children?: ReactNode}): ReactElement {
navigate('/home-page');
}, []);

return <div className='App'>{props.children}</div>;
return <div className="App">{props.children}</div>;
}
2 changes: 1 addition & 1 deletion src/popup/components/PopupContent/PopupContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {ReactElement, ReactNode} from 'react';

export default function PopupContent(props: {children?: ReactNode}): ReactElement {
return (
<Box className='popup-content' display='flex' justifyContent='center' alignItems='center'>
<Box className="popup-content" display="flex" justifyContent="center" alignItems="center">
{props.children}
</Box>
);
Expand Down
4 changes: 2 additions & 2 deletions src/popup/components/PopupHeader/PopupHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {ReactElement, ReactNode} from 'react';

export default function PopupHeader(props: {children?: ReactNode}): ReactElement {
return (
<Toolbar className='popup-header' sx={{boxShadow: 1}}>
<ExtensionRoundedIcon className='popup-logo' />
<Toolbar className="popup-header" sx={{boxShadow: 1}}>
<ExtensionRoundedIcon className="popup-logo" />
<h1>Chrome Extension React</h1>
{props.children}
</Toolbar>
Expand Down
12 changes: 6 additions & 6 deletions src/popup/features/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default function HomePage(): ReactElement {
<>
<PopupHeader />
<PopupContent>
<Stack alignItems='center' spacing={1}>
<Box alignItems='center'>
<Stack alignItems="center" spacing={1}>
<Box alignItems="center">
<h1>My Chromium extension</h1>
</Box>

Expand All @@ -76,8 +76,8 @@ export default function HomePage(): ReactElement {
</p>

<Button
className='scrape-button'
variant='contained'
className="scrape-button"
variant="contained"
disabled={disableScrapeButton}
onClick={scrape}
>
Expand All @@ -91,8 +91,8 @@ export default function HomePage(): ReactElement {
onClose={handleSnackbarClose}
>
<Alert
className='alert-snackbar-alert'
severity='error'
className="alert-snackbar-alert"
severity="error"
onClose={handleSnackbarClose}
>
{errorSnackbarMessage}
Expand Down
4 changes: 2 additions & 2 deletions src/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function Index(): ReactElement {
<AppShell>
<Suspense fallback={<PopupHeader />}>
<Routes>
<Route path='/' element={<PopupHeader />} />
<Route path='/home-page' element={<HomePage />} />
<Route path="/" element={<PopupHeader />} />
<Route path="/home-page" element={<HomePage />} />
</Routes>
</Suspense>
</AppShell>
Expand Down

0 comments on commit e3317a8

Please sign in to comment.