diff options
Diffstat (limited to 'src/containers/Service/ServiceItem.tsx')
-rw-r--r-- | src/containers/Service/ServiceItem.tsx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/containers/Service/ServiceItem.tsx b/src/containers/Service/ServiceItem.tsx index 585f609..c1f5446 100644 --- a/src/containers/Service/ServiceItem.tsx +++ b/src/containers/Service/ServiceItem.tsx @@ -40,16 +40,14 @@ const ServiceItem: React.FC = () => { <Page title={id ? item?.name : `Новый ${service.nameSingular}`} actions={actions} - className="flex" + className="grid lg:grid-cols-2" > {(!id || item) && ( - <div className="w-1/3"> - <Formik - initialValues={_.defaults(item, service.default)} - onSubmit={onSubmit} - children={service.Form} - /> - </div> + <Formik + initialValues={_.defaults(item, service.default)} + onSubmit={onSubmit} + children={service.Form} + /> )} {item && service.Panel && <service.Panel item={item} mutate={mutate} />} </Page> |