fix: delete pl in router (#6)

This commit is contained in:
Ильназ 2024-11-03 11:38:43 +03:00
parent 7275383e5f
commit 3f6c3ebaf4
4 changed files with 42 additions and 38 deletions

5
package-lock.json generated
View File

@ -14,6 +14,7 @@
"@chakra-ui/react": "^2.4.2", "@chakra-ui/react": "^2.4.2",
"@emotion/react": "^11.4.1", "@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0", "@emotion/styled": "^11.3.0",
"@types/react": "^18.3.12",
"express": "^4.21.1", "express": "^4.21.1",
"framer-motion": "^6.2.8", "framer-motion": "^6.2.8",
"react": "^18.3.1", "react": "^18.3.1",
@ -3299,14 +3300,12 @@
"node_modules/@types/prop-types": { "node_modules/@types/prop-types": {
"version": "15.7.13", "version": "15.7.13",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz",
"integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA=="
"devOptional": true
}, },
"node_modules/@types/react": { "node_modules/@types/react": {
"version": "18.3.12", "version": "18.3.12",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz",
"integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==",
"devOptional": true,
"dependencies": { "dependencies": {
"@types/prop-types": "*", "@types/prop-types": "*",
"csstype": "^3.0.2" "csstype": "^3.0.2"

View File

@ -19,6 +19,7 @@
"@chakra-ui/react": "^2.4.2", "@chakra-ui/react": "^2.4.2",
"@emotion/react": "^11.4.1", "@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0", "@emotion/styled": "^11.3.0",
"@types/react": "^18.3.12",
"express": "^4.21.1", "express": "^4.21.1",
"framer-motion": "^6.2.8", "framer-motion": "^6.2.8",
"react": "^18.3.1", "react": "^18.3.1",

View File

@ -1,31 +1,35 @@
export const mastersData = [ export const mastersData = [
{ {
name: "Иван Иванов", id: 'masters1',
schedule: ["15:00 - 16:30", "17:00 - 18:00"], name: 'Иван Иванов',
phone: "+7 900 123 45 67", schedule: ['15:00 - 16:30', '17:00 - 18:00'],
}, phone: '+7 900 123 45 67',
{ },
name: "Сергей Петров", {
schedule: ["10:00 - 12:30", "14:00 - 15:30", "16:00 - 17:00"], id: 'masters2',
phone: "+7 900 234 56 78", name: 'Сергей Петров',
}, schedule: ['10:00 - 12:30', '14:00 - 15:30', '16:00 - 17:00'],
phone: '+7 900 234 56 78',
},
]; ];
export const ordersData = [ export const ordersData = [
{ {
carNumber: "A123BC", id: 'order1',
washTime: "10:30", carNumber: 'A123BC',
orderDate: "2024-10-31", washTime: '10:30',
status: "В процессе", orderDate: '2024-10-31',
phone: "+7 900 123 45 67", status: 'progress',
location: "Казань, ул. Баумана, 1", phone: '79001234567',
}, location: 'Казань, ул. Баумана, 1',
{ },
carNumber: "B456CD", {
washTime: "11:00", id: 'order2',
orderDate: "2024-10-31", carNumber: 'B456CD',
status: "Завершено", washTime: '11:00',
phone: "+7 900 234 56 78", orderDate: '2024-10-31',
location: "Казань, ул. Кремлёвская, 3", status: 'complete',
}, phone: '79002345678',
]; location: 'Казань, ул. Кремлёвская, 3',
},
];

View File

@ -1,15 +1,15 @@
import React from "react"; import React from 'react';
import { Routes, Route } from "react-router-dom"; import { Routes, Route } from 'react-router-dom';
import Arm from "./pages/arm"; import Arm from './pages/arm';
import Order from "./pages/order-view"; import Order from './pages/order-view';
import Landing from "./pages/landing"; import Landing from './pages/landing';
const Routers = () => { const Routers = () => {
return ( return (
<Routes> <Routes>
<Route path="/dry-wash-pl" element={<Landing />}></Route> <Route path='/dry-wash' element={<Landing />}></Route>
<Route path="/dry-wash-pl/order" element={<Order />}></Route> <Route path='/dry-wash/order' element={<Order />}></Route>
<Route path="/dry-wash-pl/arm" element={<Arm />}></Route> <Route path='/dry-wash/arm' element={<Arm />}></Route>
</Routes> </Routes>
); );
}; };