From e9c49bd33a2367cbb1032684c19898d2a6ad050f Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Wed, 8 May 2024 18:32:36 +0300 Subject: [PATCH] MSP-3229 remove ContentColumn and add scroll in TokenContent --- src/components/ApplicationsContent/index.tsx | 4 +- src/components/TokenContent/index.tsx | 72 ++++++++++--------- .../ApplicationsPage/applications-page.scss | 3 +- src/pages/ApplicationsPage/index.tsx | 9 +-- 4 files changed, 45 insertions(+), 43 deletions(-) diff --git a/src/components/ApplicationsContent/index.tsx b/src/components/ApplicationsContent/index.tsx index e0a6f76..8725789 100644 --- a/src/components/ApplicationsContent/index.tsx +++ b/src/components/ApplicationsContent/index.tsx @@ -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 = ({ ) }} /> - {renderTokenContent()} + {renderTokenContent()} { return (
- - - - - record.createdAt} - pagination={false} - columns={columns} - dataSource={data} - /> - - setShowApplicationsModal(false)} - > -
- +
+ + + +
+
+
record.createdAt} + pagination={false} + columns={columns} + dataSource={data} /> - - + + setShowApplicationsModal(false)} + > +
+ + +
+ ) } diff --git a/src/pages/ApplicationsPage/applications-page.scss b/src/pages/ApplicationsPage/applications-page.scss index b8f21b3..9365a2b 100644 --- a/src/pages/ApplicationsPage/applications-page.scss +++ b/src/pages/ApplicationsPage/applications-page.scss @@ -2,6 +2,8 @@ .applications-page { height: 100%; + display: flex; + background: #fff; &__list { .ant-list-item { @@ -24,7 +26,6 @@ background: #fff; box-shadow: inset -1px 0px 0px $border-color; - height: 100%; .column__header { padding: $basic-padding * 2 $basic-padding; diff --git a/src/pages/ApplicationsPage/index.tsx b/src/pages/ApplicationsPage/index.tsx index 58a0902..fe1904c 100644 --- a/src/pages/ApplicationsPage/index.tsx +++ b/src/pages/ApplicationsPage/index.tsx @@ -30,7 +30,7 @@ import { PermissionKeysType } from '@type/roles.type.ts' import './applications-page.scss' -const { Column, ContentColumn, EmptyData } = Layout +const { Column, EmptyData } = Layout const { FormInput } = FormComponents const ApplicationsPage = () => { @@ -162,8 +162,7 @@ const ApplicationsPage = () => { } return ( -
-
+
{ setSearchValue(value, setSearchParams) } /> - - {renderMainContent()} + {renderMainContent()} { -
) }