-
Notifications
You must be signed in to change notification settings - Fork 36
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 #1724 from cozy/breadcrumbs
- Loading branch information
Showing
6 changed files
with
50 additions
and
52 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
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,20 @@ | ||
import BaseList from '@material-ui/core/List' | ||
import { withStyles } from '@material-ui/core/styles' | ||
import React from 'react' | ||
import List from '@material-ui/core/List' | ||
import Paper from '@material-ui/core/Paper' | ||
import createDepreciationLogger from '../../helpers/createDepreciationLogger' | ||
|
||
const styles = { | ||
root: { | ||
borderRadius: 8, | ||
overflow: 'hidden', | ||
borderLeft: '1px solid var(--silver)', | ||
borderRight: '1px solid var(--silver)', | ||
boxShadow: '0 4px 12px 0 rgba(0, 0, 0, 0.08)' | ||
} | ||
} | ||
const logRaisedListDepecrated = createDepreciationLogger() | ||
|
||
export default withStyles(styles, 'RaisedList')(BaseList) | ||
/** | ||
* @deprecated Please use a combination of List & Paper : <Paper elevation={4}><List /></Paper> | ||
*/ | ||
export default props => { | ||
logRaisedListDepecrated( | ||
'RaisedList is deprecated, please use a combination of List & Paper : <Paper elevation={4}><List /></Paper>' | ||
) | ||
return ( | ||
<Paper elevation={2}> | ||
<List {...props} /> | ||
</Paper> | ||
) | ||
} |