updated the add cusstomer fileds
This commit is contained in:
parent
75b5bc7c0e
commit
8ce42aeb2d
@ -14,7 +14,7 @@ import { cibGmail } from "@coreui/icons";
|
|||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
|
|
||||||
const setupAxios = () => {
|
const setupAxios = () => {
|
||||||
//axios.defaults.baseURL = "http://localhost:5000";
|
// axios.defaults.baseURL = "http://localhost:5000";
|
||||||
axios.defaults.baseURL = "https://api.smellika.com";
|
axios.defaults.baseURL = "https://api.smellika.com";
|
||||||
|
|
||||||
axios.defaults.headers = {
|
axios.defaults.headers = {
|
||||||
|
@ -42,6 +42,8 @@ const AddCustomer = () => {
|
|||||||
state: "",
|
state: "",
|
||||||
postalCode: "",
|
postalCode: "",
|
||||||
country: "",
|
country: "",
|
||||||
|
company_name: "",
|
||||||
|
gst_number: Number,
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
@ -373,6 +375,50 @@ const AddCustomer = () => {
|
|||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid item xs={6}>
|
||||||
|
<FormControl variant="outlined" fullWidth>
|
||||||
|
<FormHelperText
|
||||||
|
id="outlined-weight-helper-text"
|
||||||
|
sx={styles.formStyle}
|
||||||
|
>
|
||||||
|
Company Name
|
||||||
|
</FormHelperText>
|
||||||
|
<OutlinedInput
|
||||||
|
size="small"
|
||||||
|
id="outlined-adornment-weight"
|
||||||
|
placeholder="Company name"
|
||||||
|
aria-describedby="outlined-weight-helper-text"
|
||||||
|
name="company_name"
|
||||||
|
type="text"
|
||||||
|
onChange={(e) => handleChange(e)}
|
||||||
|
|
||||||
|
// value={accountDetails.firstname}
|
||||||
|
// onChange={handerInputChanges}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={6}>
|
||||||
|
<FormControl variant="outlined" fullWidth>
|
||||||
|
<FormHelperText
|
||||||
|
id="outlined-weight-helper-text"
|
||||||
|
sx={styles.formStyle}
|
||||||
|
>
|
||||||
|
GST Number
|
||||||
|
</FormHelperText>
|
||||||
|
<OutlinedInput
|
||||||
|
size="small"
|
||||||
|
id="outlined-adornment-weight"
|
||||||
|
placeholder="GST Number"
|
||||||
|
aria-describedby="outlined-weight-helper-text"
|
||||||
|
name="gst_number"
|
||||||
|
type="text"
|
||||||
|
onChange={(e) => handleChange(e)}
|
||||||
|
|
||||||
|
// value={accountDetails.firstname}
|
||||||
|
// onChange={handerInputChanges}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
</Grid>
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
|
@ -217,6 +217,10 @@ const SingleUserAllDetails = () => {
|
|||||||
<td style={{ maxWidth: "400px" }}>
|
<td style={{ maxWidth: "400px" }}>
|
||||||
<strong>
|
<strong>
|
||||||
{address?.first_Name} {address?.last_name},
|
{address?.first_Name} {address?.last_name},
|
||||||
|
{address.company_name
|
||||||
|
? `${address.company_name},`
|
||||||
|
: ""}
|
||||||
|
{address.gst_number ? `${address.gst_number},` : ""}
|
||||||
{address?.phone_Number},{address?.street},
|
{address?.phone_Number},{address?.street},
|
||||||
{address?.city},{address?.state},{address?.country},
|
{address?.city},{address?.state},{address?.country},
|
||||||
{address?.postalCode}
|
{address?.postalCode}
|
||||||
|
Loading…
Reference in New Issue
Block a user