feat: add navigation keys and routing check (#24)

This commit is contained in:
RustamRu
2024-11-16 15:41:14 +03:00
parent 897602c471
commit bc629eabdf
9 changed files with 66 additions and 14 deletions

View File

@@ -1,7 +1,20 @@
import React from "react";
import React from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { Button } from '@chakra-ui/react';
import { URLs } from '../../__data__/urls';
import { mockOrders } from '../../mocks/landing';
const Page = () => {
return <h1>Order form </h1>;
return (
<>
<h1>Order form</h1>
{mockOrders.map(({ id }) => (
<Button key={id} as={RouterLink} to={URLs.orderView.getUrl(id)}>
Посмотреть заказ {id}
</Button>
))}
</>
);
};
export default Page;