Skip to content

Commit

Permalink
created tags users and activities
Browse files Browse the repository at this point in the history
  • Loading branch information
TI JONNY committed Nov 1, 2024
1 parent 2e11052 commit f904cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page/tags/listTags/modalInputs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const ModalInputs = ({ visible, setOpen }: { visible: any, setOpen: any }) => {

const initialValue: { content: string, type: any } = { content: visible?.content ?? "", type: type_tags.find(props => props.id === visible?.type) ?? undefined, }
return (
<Dialog visible={visible} header={visible.id ? "Editar tag" : "Criar tag"} style={{ width: "50%" }} onHide={() => setOpen(!visible)}>
<Dialog visible={visible} header={visible?.id ? "Editar tag" : "Criar tag"} style={{ width: "50%" }} onHide={() => setOpen(!visible)}>
<Formik initialValues={initialValue} onSubmit={(values) => {
if (visible.id) {
if (visible?.id) {
props?.UploadTags({ ...values, type: values.type?.id }, visible.id)
} else { props?.CreateTags({ ...values, type: values.type?.id }); }
setOpen(!visible)
Expand Down

0 comments on commit f904cfc

Please # to comment.