merge conflict fixed

This commit is contained in:
2024-12-11 16:50:34 -05:00
parent e26ffde6c0
commit 7d9018ecb1
8 changed files with 418 additions and 36 deletions

View File

@@ -4,6 +4,8 @@ import { brandType } from "src/types/brandType";
import Brand from "./brand";
import AddBrand from "./addBrand";
import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions";
import Footer from "@components/site/Footer";
interface Props {
brands: brandType[];
}
@@ -50,6 +52,7 @@ const BrandsList: FC<Props> = ({ brands }) => {
</div>
{/* Adding brand component for creating new brand */}
<AddBrand createBrand={createBrand} />
<Footer/>
</main>
);
};

View File

@@ -1,15 +1,9 @@
// components/UserRegistration.js
import { useState } from 'react';
import { useToast } from '@chakra-ui/react';
import {
FormControl,
FormLabel,
Input,
Button,
Stack,
Heading,
} from '@chakra-ui/react';
import { drizzle } from 'drizzle-orm';
import { useToast } from '@chakra-ui/toast';
import { FormControl, FormLabel, } from '@chakra-ui/form-control';
import { Input, Button, Stack, Heading } from '@chakra-ui/react';
import { drizzle } from 'drizzle-orm/node-postgres';
export default function UserRegistration() {
const [formData, setFormData] = useState({