mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-08-11 11:42:03 +00:00
Fixed add customer page
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {Button, Group, TextInput, NumberInput, Container, Title, Flex} from '@mantine/core';
|
import {Button, Group, TextInput, Container, Title, Flex} from '@mantine/core';
|
||||||
import {useForm} from '@mantine/form';
|
import {useForm} from '@mantine/form';
|
||||||
import {useMutation} from "@tanstack/react-query";
|
import {useMutation} from "@tanstack/react-query";
|
||||||
import {NewCustomer} from "./types.ts";
|
import {NewCustomer} from "./types.ts";
|
||||||
@@ -89,11 +89,11 @@ function AddCustomer() {
|
|||||||
placeholder="Name" {...newCustomerForm.getInputProps('name')}/>
|
placeholder="Name" {...newCustomerForm.getInputProps('name')}/>
|
||||||
<TextInput size="md" key={newCustomerForm.key('company')} label="Company"
|
<TextInput size="md" key={newCustomerForm.key('company')} label="Company"
|
||||||
placeholder="Company"{...newCustomerForm.getInputProps('company')}/>
|
placeholder="Company"{...newCustomerForm.getInputProps('company')}/>
|
||||||
<NumberInput size="md" key={newCustomerForm.key('email')} label="Email"
|
<TextInput withAsterisk size="md" key={newCustomerForm.key('email')} label="Email"
|
||||||
placeholder="Email" {...newCustomerForm.getInputProps('email')}/>
|
placeholder="Email" {...newCustomerForm.getInputProps('email')}/>
|
||||||
<NumberInput size="md" key={newCustomerForm.key('phone')} label="Phone"
|
<TextInput size="md" key={newCustomerForm.key('phone')} label="Phone"
|
||||||
placeholder="Phone" {...newCustomerForm.getInputProps('phone')}/>
|
placeholder="Phone" {...newCustomerForm.getInputProps('phone')}/>
|
||||||
<NumberInput size="md" key={newCustomerForm.key('address')} label="Address"
|
<TextInput size="md" key={newCustomerForm.key('address')} label="Address"
|
||||||
placeholder="Address" {...newCustomerForm.getInputProps('address')}/>
|
placeholder="Address" {...newCustomerForm.getInputProps('address')}/>
|
||||||
|
|
||||||
<Group justify="flex-end" mt="md">
|
<Group justify="flex-end" mt="md">
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ function CustomerList() {
|
|||||||
<p>
|
<p>
|
||||||
ARFF ARFF BARK BARK
|
ARFF ARFF BARK BARK
|
||||||
</p>
|
</p>
|
||||||
<NavLink to={'/customers/AddCustomers'}><BarkButton>Add Customer</BarkButton></NavLink>
|
<NavLink to={'/customers/AddCustomer'}><BarkButton>Add Customer</BarkButton></NavLink>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Table striped>
|
<Table striped>
|
||||||
|
|||||||
Reference in New Issue
Block a user