MSP-3229 remove ContentColumn and add scroll in TokenContent

This commit is contained in:
Anastasiia committed 2024-05-13 13:30:06 +03:00
1 parent 1e8e8970bd
commit e9c49bd33a
4 files changed
+45 -43

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ import { routePaths } from '@routes/routePaths.ts'
import './applications-content.scss'
const { FormInput } = FormComponents
const { EmptyData, Column, ContentColumn } = Layout
const { EmptyData, Column } = Layout
interface ApplicationsContentPropTypes {
selectedItemId: number
@@ -201,7 +201,7 @@ const ApplicationsContent: FC<ApplicationsContentPropTypes> = ({
)
}}
/>
<ContentColumn>{renderTokenContent()}</ContentColumn>
{renderTokenContent()}
<Modal
onOk={handleSubmit(handleUpdateApplicationApp)}
+38 -34
View File
@@ -219,41 +219,45 @@ const TokenContent = ({ id }: TokenPropTypes) => {
return (
<section className="token-content">
<CanEdit>
<Button
className="applications-content__add-btn"
type="primary"
onClick={handleShowAddModalToken}
>
Добавить токен
</Button>
</CanEdit>
<Table
className="appliactions-tokent__table"
rowKey={(record) => record.createdAt}
pagination={false}
columns={columns}
dataSource={data}
/>
<Modal
onOk={handleSubmitTokens(handleCreateToken)}
title="Добавить"
open={showApplicationsModal}
footer={{ onCanselText: 'Отмена', onOkText: 'Сохранить' }}
onClose={() => setShowApplicationsModal(false)}
>
<form>
<FormSelect
options={tokensOptions}
name="expireTime"
control={controlTokens}
label="Время действия"
rules={{ required: ValidationRules.required }}
<div className="token-content__wrap">
<header className="token-content__header">
<CanEdit>
<Button
className="applications-content__add-btn"
type="primary"
onClick={handleShowAddModalToken}
>
Добавить токен
</Button>
</CanEdit>
</header>
<div className="token-content__table">
<Table
className="appliactions-tokent__table"
rowKey={(record) => record.createdAt}
pagination={false}
columns={columns}
dataSource={data}
/>
</form>
</Modal>
</div>
<Modal
onOk={handleSubmitTokens(handleCreateToken)}
title="Добавить"
open={showApplicationsModal}
footer={{ onCanselText: 'Отмена', onOkText: 'Сохранить' }}
onClose={() => setShowApplicationsModal(false)}
>
<form>
<FormSelect
options={tokensOptions}
name="expireTime"
control={controlTokens}
label="Время действия"
rules={{ required: ValidationRules.required }}
/>
</form>
</Modal>
</div>
</section>
)
}