Skip to content

Commit 8bdc2f6

Browse files
committed
Code clean
1 parent ab37faa commit 8bdc2f6

File tree

5 files changed

+4
-19
lines changed

5 files changed

+4
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"homepage": "./",
77
"scripts": {
8-
"build": "cross-env REACT_APP_BACKEND=true PUBLIC_URL='./' react-scripts build",
8+
"build": "cross-env REACT_APP_BACKEND=true NODE_ENV=production PUBLIC_URL='./' react-scripts build",
99
"start": "cross-env REACT_APP_BACKEND=true react-scripts start",
1010
"test": "react-scripts test",
1111
"format": "prettier --write src/"

src/components/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function App() {
3131
<Route
3232
exact
3333
path='/'
34-
render={() => <Redirect to='/app/dashboard' />}
34+
render={() => <Redirect to='/app/profile' />}
3535
/>
3636

3737
<Route

src/components/Layout/Layout.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,6 @@ function Layout(props) {
180180

181181
/>
182182

183-
<Route path={'/app/api-docs'} exact
184-
component={(props) => (
185-
<Redirect
186-
url={
187-
process.env.NODE_ENV === 'production'
188-
? window.location.origin + '/api-docs'
189-
: 'http://localhost:8080/api-docs'
190-
}
191-
{...props}
192-
/>
193-
)}
194-
/>
195-
196183
<Route path={'/app/users'} exact component={UsersTablePage} />
197184
<Route path={'/app/user/new'} exact component={AddUser} />
198185
<Route

src/components/Sidebar/SidebarStructure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const structure = [
226226
},
227227
{ id: 14, type: 'divider' },
228228
{ id: 15, type: 'title', label: 'HELP' },
229-
{ id: 16, label: 'Library', link: 'https://flatlogic.com/templates', icon: <LibraryIcon /> },
229+
{ id: 16, label: 'Library', link: 'https://flatlogic.com/templates/', icon: <LibraryIcon />, ext: true },
230230
{ id: 17, label: 'Support', link: 'https://flatlogic.com/forum/', icon: <SupportIcon /> },
231231
{ id: 18, label: 'FAQ', link: 'https://flatlogic.com/forum/', icon: <FAQIcon /> },
232232
{ id: 19, type: 'divider' },

src/components/Sidebar/components/SidebarLink/SidebarLink.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ export default function SidebarLink({
9898
return toggleDrawer(e);
9999
}}
100100
onKeyPress={toggleDrawer}
101-
button
102-
component={link && Link}
101+
component={link ? Link : null}
103102
to={link}
104103
className={classes.link}
105104
classes={{
@@ -108,7 +107,6 @@ export default function SidebarLink({
108107
[classes.linkNested]: nested,
109108
}),
110109
}}
111-
disableRipple
112110
>
113111
<ListItemIcon
114112
className={classnames(classes.linkIcon, {

0 commit comments

Comments
 (0)