Skip to content

Commit 08eecc9

Browse files
committed
deploy
1 parent 20e05b9 commit 08eecc9

6 files changed

Lines changed: 6 additions & 43 deletions

File tree

src/App.jsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,14 @@
11
import { useState } from "react";
22
import "./index.css";
3-
<<<<<<< HEAD
4-
import {
5-
Routes,
6-
Route
7-
} from "react-router-dom";
8-
import Doc from "./pages/Doc";
9-
import Home from "./pages/Home";
10-
=======
113
import Error from "./components/Error/Error";
12-
import Header from "./components/Header/Header";
134
import SearchInput from "./components/Search/SearchInput";
145
import Layout from "./components/Layout/Layout";
15-
>>>>>>> parent of 8d9c392 (pages created)
166

177
function App() {
188
const [search, setSearch] = useState('')
199
const [type, setType] = useState('')
2010
return (
21-
<<<<<<< HEAD
22-
<Routes>
23-
<Route path="/" element={<Home />} />
24-
<Route path="/Doc" element={<Doc />} />
25-
</Routes>
26-
=======
11+
2712
<>
2813
<Layout>
2914
<SearchInput
@@ -38,7 +23,6 @@ function App() {
3823
</Layout>
3924

4025
</>
41-
>>>>>>> parent of 8d9c392 (pages created)
4226
);
4327
}
4428

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from 'react';
2-
import Header from '../Header/Header';
32
import Layout from '../Layout/Layout';
43
import DocItem from './DocItem';
54

6-
const DocCard = () => {
5+
const Doc = () => {
76
return (
87
<div className='w-full md:w-5/6 mx-auto px-4 py-8'>
98
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
@@ -67,4 +66,4 @@ const DocCard = () => {
6766
);
6867
};
6968

70-
export default DocCard;
69+
export default Doc;

src/main.jsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import React from "react";
22
import ReactDOM from "react-dom/client";
33
import App from "./App";
4-
<<<<<<< HEAD
5-
import { BrowserRouter } from "react-router-dom";
6-
=======
74
import {
85
createBrowserRouter,
96
RouterProvider,
@@ -23,12 +20,9 @@ const router = createBrowserRouter(
2320
}
2421
]
2522
);
26-
>>>>>>> parent of 8d9c392 (pages created)
2723

2824
ReactDOM.createRoot(document.getElementById("root")).render(
29-
<BrowserRouter>
30-
<React.StrictMode>
31-
<App />
32-
</React.StrictMode>
33-
</BrowserRouter>
25+
<React.StrictMode>
26+
<RouterProvider router={router} />
27+
</React.StrictMode>
3428
);

src/pages/doc.jsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1 @@
1-
<<<<<<< HEAD
2-
import React from 'react'
3-
import Layout from '../components/Layout/Layout'
4-
import DocCard from '../components/Docs/DocCard'
5-
const Doc = () => {
6-
return (
7-
<Layout>
8-
<DocCard />
9-
</Layout>
10-
)
11-
}
121

13-
export default Doc
14-
=======
15-
>>>>>>> parent of 8d9c392 (pages created)

0 commit comments

Comments
 (0)