fix landing route names (#8)

This commit is contained in:
RustamRu
2024-12-08 09:54:17 +03:00
parent 6705e74ece
commit 440e87ef76
5 changed files with 13 additions and 11 deletions

View File

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