mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
redid button
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
import {PropsWithChildren} from "react";
|
||||||
|
import { Button } from '@mantine/core';
|
||||||
|
|
||||||
|
function BarkButton({children}: PropsWithChildren) {
|
||||||
|
return (
|
||||||
|
<Button variant="filled" color="red" size="md" radius="md">{children}</Button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default BarkButton;
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import {PropsWithChildren} from "react";
|
|
||||||
|
|
||||||
function Button({children}: PropsWithChildren) {
|
|
||||||
return (
|
|
||||||
<button className="bg-brand rounded text-white font-bold px-4 py-2">{children}</button>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Button
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import {useQuery} from "@tanstack/react-query";
|
import {useQuery} from "@tanstack/react-query";
|
||||||
import {Link} from "react-router";
|
|
||||||
import {InventoryItem} from "./types";
|
import {InventoryItem} from "./types";
|
||||||
import Button from "../../common/components/Button.tsx";
|
|
||||||
import {BarkHeader} from "../../common/components/BarkHeader.tsx";
|
import {BarkHeader} from "../../common/components/BarkHeader.tsx";
|
||||||
|
import { Table } from '@mantine/core';
|
||||||
|
import BarkButton from "../../common/components/BarkButton.tsx";
|
||||||
|
|
||||||
|
|
||||||
function InventoryList() {
|
function InventoryList() {
|
||||||
@@ -28,38 +28,33 @@ function InventoryList() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<BarkHeader></BarkHeader>
|
<BarkHeader></BarkHeader>
|
||||||
|
|
||||||
<div>
|
|
||||||
<h1 className={"text-brand"}>Inventory</h1>
|
|
||||||
</div>
|
|
||||||
<p>
|
<p>
|
||||||
ARFF ARFF BARK BARK
|
ARFF ARFF BARK BARK
|
||||||
</p>
|
</p>
|
||||||
<Link to="/">
|
<BarkButton>Add Item</BarkButton>
|
||||||
<Button>Home</Button>
|
|
||||||
</Link>
|
|
||||||
<div>{isFetching ? 'Updating...' : ''}</div>
|
<div>{isFetching ? 'Updating...' : ''}</div>
|
||||||
|
|
||||||
<table className="w-1/2">
|
<Table striped>
|
||||||
<thead>
|
<Table.Thead>
|
||||||
<tr className="text-left">
|
<Table.Tr className="text-left">
|
||||||
<th className="text-brand">ID</th>
|
<Table.Th color="red">ID</Table.Th>
|
||||||
<th className="text-brand">Brand</th>
|
<Table.Th className="text-brand">Brand</Table.Th>
|
||||||
<th className="text-brand">Item</th>
|
<Table.Th className="text-brand">Item</Table.Th>
|
||||||
<th className="text-brand">Status</th>
|
<Table.Th className="text-brand">Status</Table.Th>
|
||||||
</tr>
|
</Table.Tr>
|
||||||
</thead>
|
</Table.Thead>
|
||||||
<tbody>
|
<Table.Tbody>
|
||||||
{data.map((data) => (
|
{data.map((data) => (
|
||||||
<tr key={data.id}>
|
<Table.Tr key={data.id}>
|
||||||
<td>{data.id}</td>
|
<Table.Td>{data.id}</Table.Td>
|
||||||
<td>{data.brand}</td>
|
<Table.Td>{data.brand}</Table.Td>
|
||||||
<td>{data.name}</td>
|
<Table.Td>{data.name}</Table.Td>
|
||||||
<td>{data.status}</td>
|
<Table.Td>{data.status}</Table.Td>
|
||||||
</tr>
|
</Table.Tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</Table.Tbody>
|
||||||
</table>
|
</Table>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import {Link} from "react-router";
|
|
||||||
import Button from "../common/components/Button.tsx";
|
|
||||||
import {BarkHeader} from "../common/components/BarkHeader.tsx";
|
import {BarkHeader} from "../common/components/BarkHeader.tsx";
|
||||||
|
|
||||||
|
|
||||||
@@ -9,15 +7,9 @@ function Home() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<BarkHeader></BarkHeader>
|
<BarkHeader></BarkHeader>
|
||||||
<div>
|
|
||||||
<h1 className={"text-brand"}>Home</h1>
|
|
||||||
</div>
|
|
||||||
<p>
|
<p>
|
||||||
ARFF ARFF BARK BARK
|
ARFF ARFF BARK BARK
|
||||||
</p>
|
</p>
|
||||||
<Link to="/inventory">
|
|
||||||
<Button>Inventory</Button>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user