Skip to content

Commit

Permalink
add accordion form
Browse files Browse the repository at this point in the history
  • Loading branch information
allenchuang committed Dec 9, 2023
1 parent 93c4e85 commit 71d4f6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/admin/AccordionInputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Button } from '@/components/ui/button';
import { useState } from 'react';
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion';
import { removeEmptyStringFields } from '@/utils';
import JsonView from '@uiw/react-json-view';

type InputFormProps = {
formSchema: z.ZodObject<any, any>;
Expand Down Expand Up @@ -165,7 +166,7 @@ export default function AccordionInputForm({
/>
))}
<Button type="submit">Submit</Button>
<DisplayData data={result.data} />
<JsonView value={result} />
</form>
</Form>
</AccordionContent>
Expand Down

0 comments on commit 71d4f6a

Please sign in to comment.