-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug with likes/bookmarks and locals
- Loading branch information
1 parent
e2a0b99
commit a0c4f50
Showing
14 changed files
with
595 additions
and
590 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
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
48 changes: 24 additions & 24 deletions
48
src/components/LogInModal/components/ConfirmStep/ConfirmStep.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,47 +1,47 @@ | ||
import { FC, Dispatch, SetStateAction } from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { FC, Dispatch, SetStateAction } from 'react' | ||
import { useTranslation } from 'react-i18next' | ||
|
||
import useTheme from "@mui/material/styles/useTheme"; | ||
import Button from "@mui/material/Button"; | ||
import Typography from "@mui/material/Typography"; | ||
import Grid from "@mui/material/Grid"; | ||
import { Theme, SxProps } from "@mui/material/styles"; | ||
import useTheme from '@mui/material/styles/useTheme' | ||
import Button from '@mui/material/Button' | ||
import Typography from '@mui/material/Typography' | ||
import Grid from '@mui/material/Grid' | ||
import { Theme, SxProps } from '@mui/material/styles' | ||
|
||
import IPalette from "theme/IPalette.interface"; | ||
import IPalette from 'theme/IPalette.interface' | ||
|
||
interface ConfirmStepProps { | ||
setOpen: Dispatch<SetStateAction<boolean>>; | ||
wrapperStyle: SxProps<Theme>; | ||
setOpen: Dispatch<SetStateAction<boolean>> | ||
wrapperStyle: SxProps<Theme> | ||
} | ||
|
||
const ConfirmStep: FC<ConfirmStepProps> = ({ setOpen, wrapperStyle }) => { | ||
const { t } = useTranslation(); | ||
const { palette }: IPalette = useTheme(); | ||
const { t } = useTranslation() | ||
const { palette }: IPalette = useTheme() | ||
|
||
const handleClose = () => { | ||
setOpen(false); | ||
}; | ||
setOpen(false) | ||
} | ||
|
||
return ( | ||
<Grid container sx={wrapperStyle}> | ||
<Typography id="modal-modal-title" variant="h6" component="h2"> | ||
{t("login.confirm.header")} | ||
<Typography id='modal-modal-title' variant='h6' component='h2'> | ||
{t('login.confirm.header')} | ||
</Typography> | ||
<Typography | ||
id="modal-modal-title" | ||
id='modal-modal-title' | ||
sx={{ | ||
fontSize: 16, | ||
color: palette.whiteAlpha.default, | ||
textAlign: "center", | ||
textAlign: 'center', | ||
}} | ||
> | ||
{t("login.confirm.description")} | ||
{t('login.confirm.description')} | ||
</Typography> | ||
<Button variant="contained" color="primary" onClick={handleClose}> | ||
{t("login.confirm.close")} | ||
<Button variant='contained' color='primary' onClick={handleClose}> | ||
{t('login.confirm.closed')} | ||
</Button> | ||
</Grid> | ||
); | ||
}; | ||
) | ||
} | ||
|
||
export { ConfirmStep }; | ||
export { ConfirmStep } |
Oops, something went wrong.