Skip to content

Commit 8615012

Browse files
committed
Build succeeds but encounters runtime error
1 parent 4a1331c commit 8615012

16 files changed

+2790
-2308
lines changed

.gitignore

+78
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,81 @@ debug.log
3030
npm-debug.log*
3131
yarn-debug.log*
3232
yarn-error.log*
33+
34+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
35+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
36+
37+
# User-specific stuff
38+
.idea/**/workspace.xml
39+
.idea/**/tasks.xml
40+
.idea/**/usage.statistics.xml
41+
.idea/**/dictionaries
42+
.idea/**/shelf
43+
44+
# AWS User-specific
45+
.idea/**/aws.xml
46+
47+
# Generated files
48+
.idea/**/contentModel.xml
49+
50+
# Sensitive or high-churn files
51+
.idea/**/dataSources/
52+
.idea/**/dataSources.ids
53+
.idea/**/dataSources.local.xml
54+
.idea/**/sqlDataSources.xml
55+
.idea/**/dynamic.xml
56+
.idea/**/uiDesigner.xml
57+
.idea/**/dbnavigator.xml
58+
59+
# Gradle
60+
.idea/**/gradle.xml
61+
.idea/**/libraries
62+
63+
# Gradle and Maven with auto-import
64+
# When using Gradle or Maven with auto-import, you should exclude module files,
65+
# since they will be recreated, and may cause churn. Uncomment if using
66+
# auto-import.
67+
# .idea/artifacts
68+
# .idea/compiler.xml
69+
# .idea/jarRepositories.xml
70+
# .idea/modules.xml
71+
# .idea/*.iml
72+
# .idea/modules
73+
# *.iml
74+
# *.ipr
75+
76+
# CMake
77+
cmake-build-*/
78+
79+
# Mongo Explorer plugin
80+
.idea/**/mongoSettings.xml
81+
82+
# File-based project format
83+
*.iws
84+
85+
# IntelliJ
86+
out/
87+
88+
# mpeltonen/sbt-idea plugin
89+
.idea_modules/
90+
91+
# JIRA plugin
92+
atlassian-ide-plugin.xml
93+
94+
# Cursive Clojure plugin
95+
.idea/replstate.xml
96+
97+
# SonarLint plugin
98+
.idea/sonarlint/
99+
100+
# Crashlytics plugin (for Android Studio and IntelliJ)
101+
com_crashlytics_export_strings.xml
102+
crashlytics.properties
103+
crashlytics-build.properties
104+
fabric.properties
105+
106+
# Editor-based Rest Client
107+
.idea/httpRequests
108+
109+
# Android studio 3.1+ serialized cache file
110+
.idea/caches/build_file_checksums.ser

.idea/.gitignore

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gt-webdev-website.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/build.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/start.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/NavBar.js

+35-21
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
import React from 'react';
2-
import AppBar from '@material-ui/core/AppBar';
3-
import Toolbar from '@material-ui/core/Toolbar';
4-
import Button from '@material-ui/core/Button';
5-
import Divider from '@material-ui/core/Divider';
6-
import List from '@material-ui/core/List';
7-
import ListItem from '@material-ui/core/ListItem';
8-
import ListItemText from '@material-ui/core/ListItemText';
9-
import Drawer from '@material-ui/core/Drawer';
10-
import MenuIcon from '@material-ui/icons/Menu';
11-
import Hidden from '@material-ui/core/Hidden';
12-
import IconButton from '@material-ui/core/IconButton';
13-
import { makeStyles } from '@material-ui/core/styles';
2+
// import AppBar from '@material-ui/core/AppBar';
3+
// import Toolbar from '@material-ui/core/Toolbar';
4+
// import Button from '@material-ui/core/Button';
5+
// import Divider from '@material-ui/core/Divider';
6+
// import List from '@material-ui/core/List';
7+
// import ListItem from '@material-ui/core/ListItem';
8+
// import ListItemText from '@material-ui/core/ListItemText';
9+
// import Drawer from '@material-ui/core/Drawer';
10+
// import MenuIcon from '@material-ui/icons/Menu';
11+
// import Hidden from '@material-ui/core/Hidden';
12+
// import IconButton from '@material-ui/core/IconButton';
13+
// import { makeStyles } from '@material-ui/core/styles';
1414
import Link from 'next/link'
15+
import {
16+
AppBar,
17+
Button,
18+
Divider,
19+
Drawer,
20+
Hidden,
21+
IconButton,
22+
List, ListItem,
23+
ListItemText,
24+
makeStyles,
25+
Toolbar
26+
} from "@mui/material";
1527

1628
const navList = [
1729
{
@@ -38,14 +50,14 @@ const navList = [
3850

3951
const drawerWidth = 240;
4052

41-
const useStyles = makeStyles((theme) => ({
42-
drawerPaper: {
43-
width: drawerWidth,
44-
},
45-
}));
53+
// const useStyles = makeStyles((theme) => ({
54+
// drawerPaper: {
55+
// width: drawerWidth,
56+
// },
57+
// }));
4658

4759
const NavBar = () => {
48-
const classes = useStyles();
60+
// const classes = useStyles();
4961

5062
const [mobileOpen, setMobileOpen] = React.useState(false);
5163

@@ -92,7 +104,7 @@ const NavBar = () => {
92104
color="inherit"
93105
style={{ marginLeft: "auto" }}
94106
>
95-
<MenuIcon/>
107+
{/*<MenuIcon/>*/}
96108
</IconButton>
97109
</Hidden>
98110
</Toolbar>
@@ -102,7 +114,9 @@ const NavBar = () => {
102114
open={mobileOpen}
103115
onClose={handleDrawerToggle}
104116
classes={{
105-
paper: classes.drawerPaper,
117+
paper: {
118+
width: drawerWidth
119+
},
106120
}}
107121
ModalProps={{
108122
keepMounted: true, // Better open performance on mobile.
@@ -114,4 +128,4 @@ const NavBar = () => {
114128
);
115129
}
116130

117-
export default NavBar;
131+
export default NavBar;

0 commit comments

Comments
 (0)