X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/122fba47e0b0629ebb449c5206ba400021bc6de1..25216cc7acedc987c26a159f0b640210c0ef101e:/src/views/inactive-panel/inactive-panel.tsx diff --git a/src/views/inactive-panel/inactive-panel.tsx b/src/views/inactive-panel/inactive-panel.tsx index 8d53a21e..dc6846a2 100644 --- a/src/views/inactive-panel/inactive-panel.tsx +++ b/src/views/inactive-panel/inactive-panel.tsx @@ -7,9 +7,9 @@ import { Dispatch } from 'redux'; import { connect } from 'react-redux'; import { Grid, Typography, Button } from '@material-ui/core'; import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles'; -import { ArvadosTheme } from '~/common/custom-theme'; -import { navigateToLinkAccount } from '~/store/navigation/navigation-action'; - +import { ArvadosTheme } from 'common/custom-theme'; +import { navigateToLinkAccount } from 'store/navigation/navigation-action'; +import { RootState } from 'store/store'; type CssRules = 'root' | 'ontop' | 'title'; @@ -47,31 +47,32 @@ const mapDispatchToProps = (dispatch: Dispatch): InactivePanelActionProps => ({ } }); -type InactivePanelProps = WithStyles & InactivePanelActionProps; +export interface InactivePanelStateProps { + inactivePageText: string; +} + +type InactivePanelProps = WithStyles & InactivePanelActionProps & InactivePanelStateProps; -export const InactivePanel = connect(null, mapDispatchToProps)(withStyles(styles)((({ classes, startLinking }: InactivePanelProps) => - - - - Hi! You're logged in, but... - - - - - Your account is inactive. An administrator must activate your account before you can get any further. - - - - - If you would like to use this login to access another account click "Link Account". - - - - - - - ))); +export const InactivePanel = connect((state: RootState) => ({ + inactivePageText: state.auth.config.clusterConfig.Workbench.InactivePageHTML +}), mapDispatchToProps)(withStyles(styles)((({ classes, startLinking, inactivePageText }: InactivePanelProps) => + + + +
+ + + + + If you would like to use this login to access another account click "Link Account". + + + + + + +)));