mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-06-19 00:30:07 +00:00
enhancement(lint): Fix lint errors for src/App.tsx
Co-authored-by: NeonGamerBot-QK <neon@saahild.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
a9e74f983e
commit
179ffbe730
1 changed files with 44 additions and 30 deletions
62
src/App.tsx
62
src/App.tsx
|
@ -1,36 +1,50 @@
|
||||||
import React from 'react'
|
import React from "react";
|
||||||
import Main from './components/main'
|
import Main from "./components/main";
|
||||||
import Navbar from './components/navbar'
|
import Navbar from "./components/navbar";
|
||||||
import InfogramBelowMain from './components/infobelowmain'
|
import InfogramBelowMain from "./components/infobelowmain";
|
||||||
import { HashRouter } from './components/HashRouter'
|
import { HashRouter } from "./components/HashRouter";
|
||||||
import Route from './components/HashRouter/Route'
|
import Route from "./components/HashRouter/Route";
|
||||||
import AboutPage from './components/AboutPage'
|
import AboutPage from "./components/AboutPage";
|
||||||
import SkillSet from './components/AboutPage/SkillSet'
|
import SkillSet from "./components/AboutPage/SkillSet";
|
||||||
import GithubStats from './components/AboutPage/Github'
|
import GithubStats from "./components/AboutPage/Github";
|
||||||
import Projects from './components/Projects'
|
import Projects from "./components/Projects";
|
||||||
import Page404 from './components/static/404'
|
import Page404 from "./components/static/404";
|
||||||
import ContactPage from './components/ContactPage'
|
import ContactPage from "./components/ContactPage";
|
||||||
import ReWork from './components/ReWork'
|
import ReWork from "./components/ReWork";
|
||||||
|
|
||||||
function App ({ analytics }: any) {
|
function App({ analytics }: any) {
|
||||||
return <ReWork />
|
return <ReWork />;
|
||||||
return (
|
return (
|
||||||
<HashRouter>
|
<HashRouter>
|
||||||
<Route path={'#/'} index component={<div style={{ zIndex: 9999 }}>
|
<Route
|
||||||
|
path={"#/"}
|
||||||
|
index
|
||||||
|
component={
|
||||||
|
<div style={{ zIndex: 9999 }}>
|
||||||
<Main />
|
<Main />
|
||||||
<InfogramBelowMain />
|
<InfogramBelowMain />
|
||||||
<br />
|
<br />
|
||||||
</div>} />
|
</div>
|
||||||
<Route path='#/about' component={<>
|
}
|
||||||
|
/>
|
||||||
|
<Route
|
||||||
|
path="#/about"
|
||||||
|
component={
|
||||||
|
<>
|
||||||
<AboutPage />
|
<AboutPage />
|
||||||
<SkillSet />
|
<SkillSet />
|
||||||
<GithubStats />
|
<GithubStats />
|
||||||
</>} />
|
</>
|
||||||
<Route path='#/projects' component={<Projects />} />
|
}
|
||||||
<Route path='#/contact' component={<ContactPage analytics={analytics} />} />
|
/>
|
||||||
<Route path='*' component={<Page404 />} />
|
<Route path="#/projects" component={<Projects />} />
|
||||||
|
<Route
|
||||||
|
path="#/contact"
|
||||||
|
component={<ContactPage analytics={analytics} />}
|
||||||
|
/>
|
||||||
|
<Route path="*" component={<Page404 />} />
|
||||||
</HashRouter>
|
</HashRouter>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App
|
export default App;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue