Skip to content

Commit

Permalink
Created a constant folder, moved drawerWidth to there
Browse files Browse the repository at this point in the history
  • Loading branch information
GpGardner committed Jun 28, 2020
1 parent cf03fd0 commit e5781d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/CONSTANTS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DRAWER_WIDTH = 400;
4 changes: 3 additions & 1 deletion src/Components/Styles/NewPaletteFormStyles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const drawerWidth = 400;
import { DRAWER_WIDTH } from "../../CONSTANTS";

const drawerWidth = DRAWER_WIDTH;

const styles = (theme) => ({
root: {
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Styles/PaletteFormNavStyles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const drawerWidth = 400;
import { DRAWER_WIDTH } from "../../CONSTANTS"

const drawerWidth = DRAWER_WIDTH;

const styles = (theme) => ({
root: {
Expand Down

0 comments on commit e5781d3

Please sign in to comment.