diff --git a/src/App/App.tsx b/src/App/App.tsx index aee581a..db69b60 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -25,6 +25,7 @@ export interface AppStateInterface { logoUrl: string; user: { username?: string; + token?: string; }; scope: string; showLoginModal: boolean; diff --git a/src/components/Login/Login.tsx b/src/components/Login/Login.tsx index 0c3f8f4..31f8775 100644 --- a/src/components/Login/Login.tsx +++ b/src/components/Login/Login.tsx @@ -12,8 +12,7 @@ import FormControl from '@material-ui/core/FormControl'; import FormHelperText from '@material-ui/core/FormHelperText'; import { css } from 'emotion'; -// @ts-ignore -import classes from './login.scss'; +import * as classes from './styles'; interface FormFields { required: boolean; @@ -195,7 +194,7 @@ export default class LoginModal extends Component, Logi return ( should load the component in default state 1`] = `"

Login

"`; +exports[` should load the component in default state 1`] = `"

Login

"`; -exports[` should load the component with props 1`] = `"

Login

Error Title
Error Description
"`; +exports[` should load the component with props 1`] = `"

Login

Error Title
Error Description
"`; diff --git a/src/components/Login/login.scss b/src/components/Login/login.scss deleted file mode 100644 index 4749d77..0000000 --- a/src/components/Login/login.scss +++ /dev/null @@ -1,22 +0,0 @@ -@import '../../styles/variables'; - -.loginDialog { - min-width: 300px; -} - -.loginError { - background-color: $red !important; - min-width: inherit !important; - margin-bottom: 10px !important; -} - -.loginErrorMsg { - display: flex; - align-items: center; -} - -.loginIcon { - opacity: 0.9; - margin-right: 8px; -} - diff --git a/src/components/Login/styles.ts b/src/components/Login/styles.ts new file mode 100644 index 0000000..6029064 --- /dev/null +++ b/src/components/Login/styles.ts @@ -0,0 +1,22 @@ +import { css } from 'emotion'; +import colors from '../../utils/styles/colors'; + +export const loginDialog = css({ + minWidth: '300px', +}); + +export const loginError = css` + background-color: ${colors.red} !important; + min-width: inherit !important; + margin-bottom: 10px !important; +`; + +export const loginErrorMsg = css` + display: flex; + align-items: center; +`; + +export const loginIcon = css({ + opacity: 0.9, + marginRight: '8px', +});