Skip to content

Commit

Permalink
More style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
domhhv committed Feb 8, 2024
1 parent 06b27fa commit 7607158
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
6 changes: 6 additions & 0 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const StyledAppContainerDiv = styled('div')({
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
[theme.getColorSchemeSelector('light')]: {
backgroundColor: theme.palette.neutral[100],
},
[theme.getColorSchemeSelector('dark')]: {
backgroundColor: theme.palette.neutral[800],
},
});

const App = () => {
Expand Down
6 changes: 0 additions & 6 deletions src/components/calendar/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ export const StyledCalendarBackgroundDiv = styled('div')(({ theme }) => ({
height: '100%',
padding: theme.spacing(2),
flex: '1 1 0%',
[theme.getColorSchemeSelector('light')]: {
backgroundColor: theme.palette.neutral[100],
},
[theme.getColorSchemeSelector('dark')]: {
backgroundColor: theme.palette.neutral[800],
},
}));

export const StyledCalendarContainerDiv = styled('div')(({ theme }) => ({
Expand Down
14 changes: 7 additions & 7 deletions src/components/user/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DoNotDisturbAltRoundedIcon from '@mui/icons-material/DoNotDisturbAltRound
import { Button, Box, Typography, CircularProgress, Alert } from '@mui/joy';
import React, { type FormEventHandler } from 'react';

import { StyledAccountPageContainer } from './styled';
import { StyledAccountForm, StyledAccountPageContainer } from './styled';
import { useAccount } from './useAccount';

const AccountPage = () => {
Expand Down Expand Up @@ -48,11 +48,11 @@ const AccountPage = () => {
};

return (
<Box p={2} width="90%" m="0 auto">
<StyledAccountPageContainer>
<Typography gutterBottom level="h4">
Account
Your Account Info
</Typography>
<form onSubmit={handleSubmit}>
<StyledAccountForm onSubmit={handleSubmit}>
<Box mb={2}>
<FloatingLabelInput
value={email}
Expand All @@ -71,11 +71,11 @@ const AccountPage = () => {
</Box>
<Box mt={2}>
<Button fullWidth type="submit" loading={loading}>
Submit
Save
</Button>
</Box>
</form>
</Box>
</StyledAccountForm>
</StyledAccountPageContainer>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/user/AuthModalButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const AuthModalButton = () => {
borderRadius: 'xl',
bgcolor: 'background.level1',
[`& .${tabClasses.root}[aria-selected="true"]`]: {
boxShadow: 'sm',
boxShadow: 'none',
bgcolor: 'background.surface',
},
}}
Expand Down
5 changes: 5 additions & 0 deletions src/components/user/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const StyledAccountPageContainer = styled(Box)({
width: '90%',
margin: '0 auto',
display: 'flex',
flexDirection: 'column',
height: 'calc(100vh - 52px)',
alignItems: 'center',
justifyContent: 'center',
Expand All @@ -46,3 +47,7 @@ export const StyleLogOutIconButton = styled(IconButton)(({ theme }) => ({
backgroundColor: theme.palette.primary[900],
},
}));

export const StyledAccountForm = styled('form')({
width: 400,
});

0 comments on commit 7607158

Please sign in to comment.