-
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.
Merge pull request #49 from OrigenStudio/develop
new release candidate - v.0.1.0-rc.1
- Loading branch information
Showing
8 changed files
with
64 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
const styles = theme => ({ | ||
footer: { | ||
backgroundColor: theme.palette.background.appBar, | ||
color: theme.palette.getContrastText(theme.palette.background.appBar), | ||
padding: '20px 10px', | ||
}, | ||
message: { | ||
textAlign: 'center', | ||
marginBottom: '30px', | ||
}, | ||
logoImage: { | ||
maxHeight: '50px', | ||
maxWidth: '300px', | ||
margin: '0', | ||
padding: '0', | ||
}, | ||
}); | ||
const styles = theme => { | ||
const backgroundColorDefault = | ||
theme.palette.type === 'light' | ||
? theme.palette.grey[100] | ||
: theme.palette.grey[900]; | ||
return { | ||
footer: { | ||
padding: '20px 10px', // TODO use units and spacing | ||
}, | ||
colorDefault: { | ||
backgroundColor: backgroundColorDefault, | ||
color: theme.palette.getContrastText(backgroundColorDefault), | ||
}, | ||
colorPrimary: { | ||
backgroundColor: theme.palette.primary.main, | ||
color: theme.palette.primary.contrastText, | ||
}, | ||
colorSecondary: { | ||
backgroundColor: theme.palette.secondary.main, | ||
color: theme.palette.secondary.contrastText, | ||
}, | ||
}; | ||
}; | ||
|
||
export default styles; |
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,10 @@ | ||
import React from 'react'; | ||
|
||
const LayoutActions = React.createContext({ | ||
toggleLeftDrawer: () => {}, | ||
toggleRightDrawer: () => {}, | ||
handleRightDrawerClose: () => {}, | ||
handleLeftDrawerClose: () => {}, | ||
}); | ||
|
||
export default LayoutActions; |
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,3 +1,5 @@ | ||
import Layout from './Layout'; | ||
import LayoutActions from './LayoutActions'; | ||
|
||
export { LayoutActions }; | ||
export default Layout; |
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