-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0347d8
commit c66d60a
Showing
12 changed files
with
174 additions
and
40 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
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
9 changes: 9 additions & 0 deletions
9
ExilenceNextApp/src/components/info-dialog/InfoDialog.styles.ts
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
dialogActions: { | ||
padding: theme.spacing(2) | ||
} | ||
})); | ||
|
||
export default useStyles; |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { | ||
Button, | ||
Dialog, | ||
DialogActions, | ||
DialogContent, | ||
DialogTitle | ||
} from '@material-ui/core'; | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import useStyles from './InfoDialog.styles'; | ||
|
||
interface Props { | ||
show: boolean; | ||
title: string; | ||
content: JSX.Element; | ||
onClose: () => void; | ||
} | ||
|
||
const InfoDialog: React.FC<Props> = ({ show, title, content, onClose }: Props) => { | ||
const classes = useStyles(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Dialog open={show} onClose={onClose}> | ||
<DialogTitle>{title}</DialogTitle> | ||
<DialogContent> | ||
{content} | ||
</DialogContent> | ||
<DialogActions className={classes.dialogActions}> | ||
<Button onClick={onClose} color="primary" variant="contained"> | ||
{t('action.close')} | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default InfoDialog; |
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
16 changes: 12 additions & 4 deletions
16
...tApp/src/components/login-content/account-validation-form/AccountValidationForm.styles.ts
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,14 +1,22 @@ | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
const useStyles = makeStyles((theme) => ({ | ||
helperIcon: { | ||
color: theme.palette.primary.light, | ||
marginRight: theme.spacing(-0.5) | ||
marginRight: theme.spacing(-0.5), | ||
}, | ||
inlineLink: { | ||
color: theme.palette.primary.light, | ||
verticalAlign: 'baseline' | ||
} | ||
verticalAlign: 'baseline', | ||
}, | ||
modalBody: { | ||
color: theme.palette.text.hint, | ||
}, | ||
linkBlock: { | ||
whiteSpace: 'nowrap', | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
}, | ||
})); | ||
|
||
export default useStyles; |
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.