mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-08-11 11:42:03 +00:00
5517924259
Two divergent copies of this branch each independently regenerated an EF migration named changedOrderToJob, and merging both left two files with the same C# class name (compile error) plus an orphaned fixedOrderCustomerID migration referencing the already-renamed orders table. Removed the dead/unapplied migrations, committed the two migrations already live on the shared dev DB, and added FixJobsCustomerIdType to bring jobs.customer_id in line with the model (text -> integer) using an explicit USING cast. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import {Burger, Container, Group, Image} from '@mantine/core';
|
|
import { useDisclosure } from '@mantine/hooks';
|
|
import classes from './BarkHeader.module.css';
|
|
import {NavLink} from "react-router";
|
|
import BarkLogo from '@/assets/barklogo.png';
|
|
|
|
|
|
const links = [
|
|
{ link: '/', label: 'Home' },
|
|
{ link: '/customers', label: 'Customers' },
|
|
{ link: '/jobs', label: 'Jobs' },
|
|
{ link: '/inventory', label: 'Inventory' },
|
|
];
|
|
|
|
export function BarkHeader() {
|
|
const [opened, { toggle }] = useDisclosure(false);
|
|
|
|
const items = links.map((link) => (
|
|
<NavLink
|
|
key={link.label}
|
|
className = {({ isActive }) =>
|
|
classes.link + ' ' + (isActive ? classes.active : '')} to={link.link} >
|
|
{link.label}
|
|
</NavLink>
|
|
));
|
|
|
|
return (
|
|
<header className={classes.header}>
|
|
<Container fluid className={classes.inner}>
|
|
<Image ml="lg" src={BarkLogo} h={55} w={55}/>
|
|
<Group gap={5} visibleFrom="xs">
|
|
{items}
|
|
</Group>
|
|
|
|
<Burger opened={opened} onClick={toggle} hiddenFrom="xs" size="sm" />
|
|
</Container>
|
|
</header>
|
|
);
|
|
} |