diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-18 13:26:46 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-18 13:26:46 +0300 |
commit | 5992702799eaf7a71cde83112c1ce478c893377b (patch) | |
tree | 6f410413292cc55ba20fe26b2910e7818b20aaa6 /src/containers/Service/ServiceItem.tsx | |
parent | aecf01896aa7987a46881d43a9d804a17516256c (diff) | |
download | commercel-ui-5992702799eaf7a71cde83112c1ce478c893377b.tar.gz |
feat: adapt Forms for mobile
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> |