Skip to content

Commit 865e749

Browse files
committed
Remove unused UI elements
1 parent 72a956f commit 865e749

File tree

10 files changed

+63992
-13700
lines changed

10 files changed

+63992
-13700
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ Free [MaterialUI](https://material-ui.com/) dashboard theme implemented by using
2626

2727
In the project directory, you can run:
2828

29-
### `yarn start`
29+
### `npm start`
3030

3131
Runs the app in the development mode.<br />
3232
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
3333

3434
The page will reload if you make edits.<br />
3535
You will also see any lint errors in the console.
3636

37-
### `yarn test`
37+
### `npm run test`
3838

3939
Launches the test runner in the interactive watch mode.<br />
4040
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
4141

42-
### `yarn build`
42+
### `npm run build`
4343

4444
Builds the app for production to the `build` folder.<br />
4545
It correctly bundles React in production mode and optimizes the build for the best performance.

package-lock.json

Lines changed: 49789 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"chart.js": "^2.9.3",
2727
"cross-env": "^7.0.0",
2828
"disqus-react": "^1.0.7",
29+
"faker": "^5.5.3",
2930
"lodash": "^4.17.15",
3031
"moment": "^2.24.0",
3132
"prop-types": "^15.7.2",

src/Dashboard/Dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const Dashboard = () => {
1919
actionsComponent={DashboardActions}
2020
></BasePageToolbar>
2121
<Grid container spacing={3}>
22+
<KeyNumbers />
2223
<Grid item xs={12}>
2324
<SubscriptionsHistory />
2425
</Grid>
25-
<KeyNumbers />
2626
<SubscriptionsRecent />
2727
<SubscriptionsBreakdown />
2828
</Grid>

src/Dashboard/KeyNumbers/KeyNumbers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import clsx from 'clsx'
3-
import PropTypes from 'prop-types'
43
import { makeStyles } from '@material-ui/core/styles'
54
import { Paper, Box, Grid, Typography } from '@material-ui/core'
65
import { Line } from 'react-chartjs-2'
@@ -109,7 +108,7 @@ const useStyles = makeStyles(theme => ({
109108
paper: {
110109
// padding: theme.spacing(2),
111110
textAlign: 'left',
112-
color: theme.palette.text.secondary,
111+
color: theme.palette.text.primary,
113112
height: '100%',
114113
},
115114
name: {

src/_common/AppHeader/AppHeader.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ const AppHeader = ({ onToggleClick }) => {
3232
</IconButton>
3333
<HeaderDemo />
3434
<div className={classes.actions}>
35-
<HeaderSearch />
36-
<HeaderNotifications />
3735
<HeaderProfile />
3836
</div>
3937
</Toolbar>

src/_common/AppHeader/AppHeaderDemoButtons.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const AppHeaderDemoButtons = props => {
1717
<Button
1818
size="small"
1919
variant="outlined"
20-
color="secondary"
20+
color="primary"
2121
className={classes.button}
2222
href="https://github.com/modularcode/modular-admin-react"
2323
>
@@ -29,7 +29,7 @@ const AppHeaderDemoButtons = props => {
2929
<Button
3030
size="small"
3131
variant="outlined"
32-
color="secondary"
32+
color="primary"
3333
className={classes.button}
3434
href="https://github.com/modularcode/modular-admin-react/releases"
3535
>
@@ -41,7 +41,7 @@ const AppHeaderDemoButtons = props => {
4141
<Button
4242
size="small"
4343
variant="outlined"
44-
color="secondary"
44+
color="primary"
4545
className={classes.button}
4646
href="https://github.com/modularcode/modular-admin-react/stargazers"
4747
>

src/_common/AppSidebar/AppSidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { makeStyles } from '@material-ui/core/styles'
55
import { Link } from 'react-router-dom'
66
import Typography from '@material-ui/core/Typography'
77

8-
import AppSidebarBg from './AppSidebarBg.jpg'
8+
// import AppSidebarBg from './AppSidebarBg.jpg'
99
import Logo from '_common/BaseLogo/BaseLogo'
1010
import SidebarNav from './SidebarNav'
1111

@@ -64,7 +64,7 @@ const useStyles = makeStyles(theme => ({
6464
top: 0,
6565
left: 0,
6666
zIndex: 0,
67-
backgroundImage: `url(${AppSidebarBg})`,
67+
// backgroundImage: `url(${AppSidebarBg})`,
6868
backgroundPosition: 'center',
6969
backgroundRepeat: 'repeat',
7070
backgroundSize: 'cover',

src/_common/AppSidebar/SidebarNav/SidebarNav.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,11 @@ const SidebarNav = props => {
7676
},
7777
],
7878
},
79-
{
80-
name: 'Search',
81-
link: '/search',
82-
Icon: IconSearch,
83-
},
8479
{
8580
name: 'Settings',
8681
link: '/settings',
8782
Icon: IconSettings,
8883
},
89-
{
90-
name: 'Error',
91-
link: '/error',
92-
Icon: IconError,
93-
},
9484
]
9585

9686
const itemsTheme = [
@@ -106,15 +96,9 @@ const SidebarNav = props => {
10696
Icon: IconLibraryBooks,
10797
IconClassName: classes.iconDocs,
10898
},
109-
{
110-
name: 'Supporters',
111-
link: '/demo/supporters',
112-
Icon: IconStars,
113-
IconClassName: classes.iconSupporters,
114-
},
11599
{
116100
name: 'Discuss',
117-
link: '/demo/discuss',
101+
link: 'https://github.com/modularcode/modular-admin-react/discussions',
118102
Icon: IconQuestionAnswer,
119103
IconClassName: classes.iconDiscuss,
120104
},

0 commit comments

Comments
 (0)