mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
#58 fixed dialog routers
This commit is contained in:
parent
3e8c2d4b6e
commit
124719c243
15 changed files with 93 additions and 39 deletions
|
@ -7,7 +7,7 @@ import { Padder } from '~/components/containers/Padder';
|
|||
import { useNodeFormContext } from '~/utils/hooks/useNodeFormFormik';
|
||||
|
||||
const EditorButtons: FC = () => {
|
||||
const { values, handleChange } = useNodeFormContext();
|
||||
const { values, handleChange, isSubmitting } = useNodeFormContext();
|
||||
|
||||
return (
|
||||
<Padder style={{ position: 'relative' }}>
|
||||
|
@ -20,12 +20,14 @@ const EditorButtons: FC = () => {
|
|||
handler={handleChange('title')}
|
||||
autoFocus
|
||||
maxLength={256}
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
|
||||
<Button
|
||||
title="Сохранить"
|
||||
iconRight="check"
|
||||
color={values.is_promoted ? 'primary' : 'lab'}
|
||||
disabled={isSubmitting}
|
||||
/>
|
||||
</Group>
|
||||
</Padder>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue