Skip to content

Commit

Permalink
refactor: factor out DRAWER_HEADER_HEIGHT
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Jun 15, 2020
1 parent 8194c8c commit 40ebc59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/DrawerHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import { DRAWER_HEADER_HEIGHT } from '../../config/constants';

const styles = () => ({
drawerHeader: {
height: '55px',
height: DRAWER_HEADER_HEIGHT,
},
username: {
fontWeight: 'bold',
Expand Down
2 changes: 2 additions & 0 deletions src/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ export const TABLE_HEAD_CELL_IDS = {

export const ROWS_PER_PAGE_OPTIONS = [5, 10, 25];
export const TABLE_ROW_HEIGHT = 43;

export const DRAWER_HEADER_HEIGHT = 55;

0 comments on commit 40ebc59

Please sign in to comment.