Skip to content

Commit

Permalink
added validation for localStorage on server
Browse files Browse the repository at this point in the history
  • Loading branch information
guardofparadise committed Feb 11, 2021
1 parent 2d84196 commit 03d7d33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Header/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
.form-control {
background-color: var(--input-bg);
color: var(--input-color);
&::placeholder {
color: var(--input-color);
}
&.focus {
background-color: var(--input-bg);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Layout extends React.Component {
!this.props.sidebarOpened ? s.sidebarClose : '',
'sing-dashboard',
`dashboard-${(localStorage.getItem("sidebarType") === SidebarTypes.TRANSPARENT) ? "light" : localStorage.getItem("dashboardTheme")}`,
`header-${localStorage.getItem("navbarColor").replace('#', '')}`
`header-${localStorage.getItem("navbarColor") ? localStorage.getItem("navbarColor").replace('#', '') : 'FFFFFF'}`
].join(' ')}
>
<Sidebar />
Expand Down

0 comments on commit 03d7d33

Please sign in to comment.