rename records -> orders
This commit is contained in:
parent
af9eff30a9
commit
bf207d78be
3
apps/web/app/(main)/orders/add/page.tsx
Normal file
3
apps/web/app/(main)/orders/add/page.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export default function AddOrdersPage() {
|
||||
return 'Add Orders';
|
||||
}
|
||||
3
apps/web/app/(main)/orders/page.tsx
Normal file
3
apps/web/app/(main)/orders/page.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export default function OrdersPage() {
|
||||
return 'Orders';
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
export default function AddRecordsPage() {
|
||||
return 'Add Records';
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
export default function RecordsPage() {
|
||||
return 'Records';
|
||||
}
|
||||
@ -10,7 +10,7 @@ import {
|
||||
import { ChevronDown } from 'lucide-react';
|
||||
import { use } from 'react';
|
||||
|
||||
const filterLabels: Record<FilterType, string> = {
|
||||
const filterLabels: Order<FilterType, string> = {
|
||||
all: 'Все',
|
||||
clients: 'Клиенты',
|
||||
masters: 'Мастера',
|
||||
|
||||
@ -13,8 +13,8 @@ export function BottomNav() {
|
||||
<nav className="sticky inset-x-0 bottom-0 border-t border-border bg-background">
|
||||
<div className="grid grid-cols-5">
|
||||
<NavButton href="/dashboard" icon={<Newspaper />} label="Главное" />
|
||||
<NavButton href="/records" icon={<BookOpen />} label="Записи" />
|
||||
<NavButton href="/records/add" icon={<PlusCircle />} label="Новая запись" />
|
||||
<NavButton href="/orders" icon={<BookOpen />} label="Записи" />
|
||||
<NavButton href="/orders/add" icon={<PlusCircle />} label="Новая запись" />
|
||||
<NavButton href="/contacts" icon={<Users />} label="Контакты" />
|
||||
<NavButton href="/profile" icon={<User />} label="Профиль" />
|
||||
</div>
|
||||
|
||||
@ -21,7 +21,7 @@ export function OrderCard({ documentId }: Readonly<OrderComponentProps>) {
|
||||
const services = order?.services.map((service) => service?.name).join(', ');
|
||||
|
||||
return (
|
||||
<Link href={`/records/${documentId}`} rel="noopener noreferrer">
|
||||
<Link href={`/orders/${documentId}`} rel="noopener noreferrer">
|
||||
<div className="flex items-center justify-between rounded-2xl bg-background p-4 px-6 dark:bg-primary/5">
|
||||
<div className="flex flex-col">
|
||||
<div className="flex items-center gap-4">
|
||||
@ -61,7 +61,7 @@ function ClientAvatar({ client }: { readonly client: OrderClient }) {
|
||||
);
|
||||
}
|
||||
|
||||
const MAP_BADGE_TEXT: Record<Enum_Order_State, string> = {
|
||||
const MAP_BADGE_TEXT: Order<Enum_Order_State, string> = {
|
||||
approved: 'Подтверждено',
|
||||
cancelled: 'Отменено',
|
||||
completed: 'Завершено',
|
||||
|
||||
@ -10,7 +10,7 @@ import { Badge } from '@repo/ui/components/ui/badge';
|
||||
import { cn } from '@repo/ui/lib/utils';
|
||||
import Link from 'next/link';
|
||||
|
||||
const MAP_BADGE_TEXT: Record<Enum_Slot_State, string> = {
|
||||
const MAP_BADGE_TEXT: Order<Enum_Slot_State, string> = {
|
||||
closed: 'Закрыто',
|
||||
open: 'Открыто',
|
||||
reserved: 'Зарезервировано',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user