Skip to content

Commit 8fc8836

Browse files
committed
rename index.tsx -> components/App/App.tsx
1 parent c433dbc commit 8fc8836

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"deploy": "npx gh-pages -d dist -m \"Build app and deploy to gh-pages\"",
1313
"storybook": "start-storybook -p 6006 --ci"
1414
},
15-
"main": "index.tsx",
15+
"main": "./components/App/App.tsx",
1616
"author": "",
1717
"license": "ISC",
1818
"keywords": [],

src/index.tsx renamed to src/components/App/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
Route,
77
Redirect
88
} from "react-router-dom";
9-
import NavigationBar from "./components/navigation/NavigationBar";
10-
import AboutSection from "./components/about/AboutSection";
11-
import SkillsSectionContainer from "./components/skills/SkillsSectionContainer";
9+
import NavigationBar from "../navigation/NavigationBar";
10+
import AboutSection from "../about/AboutSection";
11+
import SkillsSectionContainer from "../skills/SkillsSectionContainer";
1212

1313
function App(): JSX.Element {
1414
// required when hosting the app on a subdirectory of a domain rather than top-level

webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const MomentLocalesWebpackPlugin = require("moment-locales-webpack-plugin");
1111

1212
module.exports = {
1313
entry: {
14-
app: "./src/index.tsx"
14+
app: "./src/components/App/App.tsx"
1515
},
1616
output: {
1717
path: path.resolve(__dirname, "dist"),

0 commit comments

Comments
 (0)