-
Notifications
You must be signed in to change notification settings - Fork 0
Update _app.tsx #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,12 +5,12 @@ import { MuiThemeProvider } from '@material-ui/core/styles'; | |||||
| import CssBaseline from '@material-ui/core/CssBaseline'; | ||||||
| import JssProvider from 'react-jss/lib/JssProvider'; | ||||||
| import Typography from '@material-ui/core/Typography'; | ||||||
| import "react-multi-carousel/lib/styles.css"; | ||||||
| import "react-multi-carousel/lib/styles.c"; | ||||||
|
|
||||||
| import Menu from '../components/menu'; | ||||||
| import getPageContext from '../src/getPageContext'; | ||||||
|
|
||||||
| class MyApp extends App { | ||||||
| class MyApp extends NewChange { | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Class inheritance issue. - class MyApp extends NewChange {
+ class MyApp extends App {The class Committable suggestion
Suggested change
|
||||||
| constructor() { | ||||||
| super(); | ||||||
| this.pageContext = getPageContext(); | ||||||
|
|
@@ -55,4 +55,4 @@ class MyApp extends App { | |||||
| } | ||||||
| } | ||||||
|
|
||||||
| export default MyApp; | ||||||
| export default NewChange; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Export statement inconsistency. - export default NewChange;
+ export default MyApp;The export statement should match the class name defined in the file. Since the class is still named Committable suggestion
Suggested change
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect file extension in import statement.
The import path for the CSS file seems to have a typo in the file extension. It should likely be
.cssinstead of.c. Please verify the correct path and update accordingly.Committable suggestion