Skip to content

Commit

Permalink
CB-4442 add box styles to the form itself (#2277)
Browse files Browse the repository at this point in the history
Co-authored-by: Daria Marutkina <[email protected]>
  • Loading branch information
devnaumov and dariamarutkina authored Jan 10, 2024
1 parent 8f66979 commit 5041312
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,29 @@ export const AuthConfigurationForm = observer<Props>(function AuthConfigurationF
}, []);

return (
<Form context={form}>
<Form context={form} className={s(styles, { box: true }, className)}>
<TabsState actions={actions} container={service.tabsContainer} state={state} onCancel={onCancel}>
<div className={s(styles, { box: true }, className)}>
<div className={s(styles, { topBar: true })}>
<div className={s(styles, { topBarTabs: true })}>
<div className={s(styles, { statusMessage: true })}>
{state.statusMessage && (
<>
<IconOrImage className={s(styles, { iconOrImage: true })} icon="/icons/info_icon.svg" />
{translate(state.statusMessage)}
</>
)}
</div>
<TabList style={tabsInnerStyles} disabled={false} />
</div>
<div className={s(styles, { topBarActions: true })}>
<Loader suspense inline hideMessage hideException>
<Placeholder actions={actions} container={service.actionsContainer} state={state} onCancel={onCancel} />
</Loader>
<div className={s(styles, { topBar: true })}>
<div className={s(styles, { topBarTabs: true })}>
<div className={s(styles, { statusMessage: true })}>
{state.statusMessage && (
<>
<IconOrImage className={s(styles, { iconOrImage: true })} icon="/icons/info_icon.svg" />
{translate(state.statusMessage)}
</>
)}
</div>
<TabList style={tabsInnerStyles} disabled={false} />
</div>
<div className={s(styles, { contentBox: true })}>
<TabPanelList style={tabsInnerStyles} />
<div className={s(styles, { topBarActions: true })}>
<Loader suspense inline hideMessage hideException>
<Placeholder actions={actions} container={service.actionsContainer} state={state} onCancel={onCancel} />
</Loader>
</div>
</div>
<div className={s(styles, { contentBox: true })}>
<TabPanelList style={tabsInnerStyles} />
</div>
</TabsState>
</Form>
);
Expand Down

0 comments on commit 5041312

Please sign in to comment.