Client:Pages:OAuth2: fix header

This commit is contained in:
Timofey Boyko 2024-08-13 10:47:29 +03:00
parent cfcc10e98e
commit 29a295f897
2 changed files with 9 additions and 11 deletions

View File

@ -112,7 +112,7 @@ const Layout = ({
<DetailsNavigationHeader /> <DetailsNavigationHeader />
) : currentPath === oauthCreatePath || ) : currentPath === oauthCreatePath ||
currentPath === oauthEditPath ? ( currentPath === oauthEditPath ? (
<OAuthSectionHeader /> <OAuthSectionHeader isEdit={currentPath === oauthEditPath} />
) : ( ) : (
<SectionHeaderContent /> <SectionHeaderContent />
)} )}

View File

@ -28,17 +28,15 @@ const OAuthSectionHeader = ({ isEdit }: { isEdit: boolean }) => {
<HeaderContainer> <HeaderContainer>
<Headline type="content" truncate> <Headline type="content" truncate>
<div className="settings-section_header"> <div className="settings-section_header">
<div className="header"> <IconButton
<IconButton iconName={ArrowPathReactSvgUrl}
iconName={ArrowPathReactSvgUrl} size={17}
size={17} isFill
isFill onClick={onBack}
onClick={onBack} className="arrow-button"
className="arrow-button" />
/>
{isEdit ? t("EditApp") : t("NewApp")} {isEdit ? t("EditApp") : t("NewApp")}
</div>
</div> </div>
</Headline> </Headline>
</HeaderContainer> </HeaderContainer>