-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60e5db9
commit 7c090c1
Showing
8 changed files
with
176 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
apps/hpc-ftsadmin/src/app/components/flow-form-rewrite/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Form, Formik } from 'formik'; | ||
import Button from '@mui/material/Button'; | ||
import TextField from '@mui/material/TextField'; | ||
|
||
export const FlowRewriteForm = () => { | ||
const initialValues = { | ||
inputValue: '', // Initial value for the input field | ||
}; | ||
|
||
const handleSubmit = (values: any) => { | ||
console.log('Form values:', values); | ||
}; | ||
return ( | ||
<Formik initialValues={initialValues} onSubmit={handleSubmit}> | ||
{( | ||
{ values } // Destructure handleChange and values from Formik props | ||
) => ( | ||
<Form> | ||
<TextField | ||
name="inputValue" | ||
label="Input Field" | ||
variant="outlined" | ||
value={values.inputValue} // Set value prop to form values | ||
/> | ||
|
||
<Button type="submit">submit</Button> | ||
</Form> | ||
)} | ||
</Formik> | ||
); | ||
}; | ||
export default FlowRewriteForm; |
12 changes: 12 additions & 0 deletions
12
apps/hpc-ftsadmin/src/app/pages/add-edit/flow-edit-rewrite/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
|
||
import FlowRewriteForm from '../../../components/flow-form-rewrite/index'; | ||
|
||
interface Props { | ||
className?: string; | ||
isEdit: boolean; | ||
} | ||
|
||
export default (props: Props) => { | ||
return <FlowRewriteForm />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters