-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactors styles and replaces MUI with react select
- Loading branch information
1 parent
c63657f
commit b3b63da
Showing
30 changed files
with
374 additions
and
109 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,27 @@ | ||
@font-face { | ||
font-family: 'Libre Baskerville'; | ||
font-weight: normal; | ||
font-style: normal; | ||
src: url('./LibreBaskerville-Regular.ttf') | ||
} | ||
|
||
@font-face { | ||
font-family: 'Raleway'; | ||
font-weight: normal; | ||
font-style: normal; | ||
src: url('./Raleway-Regular.ttf') | ||
} | ||
|
||
@font-face { | ||
font-family: 'Libre Baskerville'; | ||
font-weight: 700; | ||
font-style: bold; | ||
src: url('./LibreBaskerville-Bold.ttf') | ||
} | ||
|
||
@font-face { | ||
font-family: 'Raleway'; | ||
font-weight: 700; | ||
font-style: bold; | ||
src: url('./Raleway-Bold.ttf') | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { | ||
StyleRulesCallback, | ||
withStyles, | ||
WithStyles | ||
} from '@material-ui/core/styles'; | ||
import { SnackbarProvider, SnackbarProviderProps } from 'notistack'; | ||
import React from 'react'; | ||
import { compose } from 'recompose'; | ||
|
||
type ClassNames = 'root' | 'success' | 'error'; | ||
|
||
const styles: StyleRulesCallback<ClassNames> = theme => ({ | ||
root: {}, | ||
success: { | ||
backgroundColor: 'rgba(0,107,224,.98)' | ||
}, | ||
error: { | ||
backgroundColor: 'rgba(171,4,87,.86)' | ||
} | ||
}); | ||
|
||
type CombinedProps = SnackbarProviderProps & WithStyles<ClassNames>; | ||
|
||
const _SnackbarProvider: React.FC<CombinedProps> = props => { | ||
const { classes, ...rest } = props; | ||
|
||
return ( | ||
<SnackbarProvider | ||
{...rest} | ||
maxSnack={3} | ||
classes={{ | ||
variantError: classes.error, | ||
variantSuccess: classes.success | ||
}} | ||
> | ||
{props.children} | ||
</SnackbarProvider> | ||
); | ||
}; | ||
|
||
const styled = withStyles(styles); | ||
|
||
export default compose<CombinedProps, SnackbarProviderProps>( | ||
styled, | ||
React.memo | ||
)(_SnackbarProvider); |
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 @@ | ||
export { default } from './SnackbarProvider'; |
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.