11import React , { useContext , useEffect , useState } from "react" ;
2- import { FormControl , FormLabel , FormErrorMessage , Input , Box , Heading , useToast , Select , Checkbox , Stack , CheckboxGroup } from "@chakra-ui/react" ;
3- import { Button , Container , Form , Modal } from "react-bootstrap" ;
4- import firebase from "firebase" ;
2+ import { FormControl , FormLabel , FormErrorMessage , Input , Box , Heading , useToast , Select , Stack } from "@chakra-ui/react" ;
3+ import { Button , Container , Modal } from "react-bootstrap" ;
54import TransactionTable from "../../components/TransactionTable" ;
65import { useForm } from "react-hook-form" ;
76import { addTransactionResolver } from "../../utils/validator/addTransactionResolver" ;
@@ -28,7 +27,7 @@ const Transaction = () => {
2827 const {
2928 handleSubmit,
3029 register,
31- formState : { errors, isSubmitting } ,
30+ formState : { errors } ,
3231 // setError,
3332 // clearErrors,
3433 } = useForm ( { resolver : addTransactionResolver } ) ;
@@ -263,33 +262,6 @@ const Transaction = () => {
263262 ) ) }
264263
265264 </ Stack >
266- < CheckboxGroup colorScheme = 'green' value = { involved } >
267- { /* <Form>
268- <Form.Group className="mb-3" controlId="exampleForm.ControlInput1">
269- <Form.Label>Email address</Form.Label>
270- {['checkbox', 'checkbox'].map((type) => (
271- <div key={`default-${type}`} className="mb-3">
272- <Form.Check
273- type={type}
274- id={`default-${type}`}
275- label={`default ${type}`}
276- />
277- </div>
278- ))}
279- </Form.Group>
280- </Form>
281-
282-
283- <CheckboxGroup defaultValue='Itachi'>
284- <Stack spacing='24px'>
285- <Checkbox name="involved" onSelect={handleInvolved} id="1" value='Sasuke'>Sasuke</Checkbox>
286- <Checkbox name="involved" onSelect={handleInvolved} id="2" value='Nagato'>Nagato</Checkbox>
287- <Checkbox name="involved" onSelect={handleInvolved} id="3" value='Itachi'>Itachi</Checkbox>
288- <Checkbox name="involved" onSelect={handleInvolved} id="4" value='Sage of the six Paths'>Sage of the six Paths</Checkbox>
289- </Stack>
290- </CheckboxGroup> */ }
291-
292- </ CheckboxGroup >
293265 < FormErrorMessage >
294266 { errors . involved && errors . involved . message }
295267 </ FormErrorMessage >
0 commit comments