added react router (p4/8) done for lab
This commit is contained in:
13
labs/lab7/src/main/Main.tsx
Normal file
13
labs/lab7/src/main/Main.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Navbar from "../components/Navbar";
|
||||
import Gallery from "./components/Gallery";
|
||||
import Content from "./components/Content";
|
||||
function Main() {
|
||||
return (
|
||||
<div>
|
||||
<Navbar active="1"/>
|
||||
<Gallery/>
|
||||
<Content/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default Main;
|
||||
@@ -1,6 +1,6 @@
|
||||
import Container from '@mui/material/Container';
|
||||
import Grid from '@mui/material/Grid';
|
||||
import structures from "../data";
|
||||
import structures from "../../data";
|
||||
import BuildCard from "./BuildCard"
|
||||
const cardData = [structures[3], structures[6], structures[9], structures[7]]
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './styles/index.css'
|
||||
import App from '../App.tsx'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user