File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useState } from "react" ;
22import "./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- === === =
113import Error from "./components/Error/Error" ;
12- import Header from ". / components / Header / Header ";
134import SearchInput from "./components/Search/SearchInput" ;
145import Layout from "./components/Layout/Layout" ;
15- >>> >>> > parent of 8d9c392 (pages created)
166
177function 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 8 d9c392 ( pages created )
4226 ) ;
4327}
4428
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import Header from '../Header/Header' ;
32import Layout from '../Layout/Layout' ;
43import 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 ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11import React from "react" ;
22import ReactDOM from "react-dom/client" ;
33import App from "./App" ;
4- < << << << HEAD
5- import { BrowserRouter } from "react-router-dom ";
6- === === =
74import {
85 createBrowserRouter ,
96 RouterProvider ,
@@ -23,12 +20,9 @@ const router = createBrowserRouter(
2320 }
2421 ]
2522) ;
26- >>> >>> > parent of 8d9c392 (pages created)
2723
2824ReactDOM . 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) ;
Original file line number Diff line number Diff line change 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 8 d9c392 ( pages created )
You can’t perform that action at this time.
0 commit comments