mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
#58 using formik at node submit form
This commit is contained in:
parent
4b542e0291
commit
b871cc2042
17 changed files with 230 additions and 423 deletions
|
@ -5,16 +5,8 @@ import { IEditorComponentProps } from '~/redux/node/types';
|
|||
|
||||
type IProps = IEditorComponentProps & {};
|
||||
|
||||
const EditorImageUploadButton: FC<IProps> = ({ data, setData, temp, setTemp }) => (
|
||||
<EditorUploadButton
|
||||
data={data}
|
||||
setData={setData}
|
||||
temp={temp}
|
||||
setTemp={setTemp}
|
||||
accept="image/*"
|
||||
icon="image"
|
||||
type={UPLOAD_TYPES.IMAGE}
|
||||
/>
|
||||
const EditorImageUploadButton: FC<IProps> = () => (
|
||||
<EditorUploadButton accept="image/*" icon="image" type={UPLOAD_TYPES.IMAGE} />
|
||||
);
|
||||
|
||||
export { EditorImageUploadButton };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue