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 />
) : currentPath === oauthCreatePath ||
currentPath === oauthEditPath ? (
<OAuthSectionHeader />
<OAuthSectionHeader isEdit={currentPath === oauthEditPath} />
) : (
<SectionHeaderContent />
)}

View File

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