Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Oct 19, 2024
1 parent 6da0632 commit f51afcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/layouts/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const { Content, Sider } = Layout;

// eslint-disable-next-line consistent-return
function loadSidebarComponents(pathname, setShowModal) {
if (pathname === '/dashboard' || pathname === '/' || pathname === '/settings') {
if (
pathname === '/dashboard' ||
pathname === '/' ||
pathname === '/settings'
) {
return (
<>
<Menu.Item
Expand Down
3 changes: 0 additions & 3 deletions src/pages/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ class Dashboard extends Component {
>
<div style={{ width: '50%' }}>
<Descriptions size="small" column={3}>
<Descriptions.Item label="Created by">
You
</Descriptions.Item>
<Descriptions.Item label="Time Spent">
{new Date(this.getProjectTotalTimeSpent() * 1000)
.toISOString()
Expand Down

0 comments on commit f51afcc

Please sign in to comment.