diff --git a/src/widgets/PermissionList/index.tsx b/src/widgets/PermissionList/index.tsx new file mode 100644 index 0000000..1de2f2a --- /dev/null +++ b/src/widgets/PermissionList/index.tsx @@ -0,0 +1,25 @@ +import { Descriptions } from 'antd' +import { FC } from 'react' + +import { PermissionListProps } from './permisiion-list.type.ts' + +import './permission-list.scss' + + +const PermissionList: FC = ({ permissions }) => { + return ( + + +
    + {permissions.map((permission, index) => { + return
  • {permission}
  • + })} +
+
+
+ ) +} + +export default PermissionList diff --git a/src/widgets/PermissionList/permisiion-list.type.ts b/src/widgets/PermissionList/permisiion-list.type.ts new file mode 100644 index 0000000..33079c4 --- /dev/null +++ b/src/widgets/PermissionList/permisiion-list.type.ts @@ -0,0 +1,3 @@ +export type PermissionListProps = { + permissions:string[]; +} diff --git a/src/widgets/PermissionList/permission-list.scss b/src/widgets/PermissionList/permission-list.scss new file mode 100644 index 0000000..8372faf --- /dev/null +++ b/src/widgets/PermissionList/permission-list.scss @@ -0,0 +1,16 @@ +@import "src/constants/style/styleConst"; + +.permission-list { + .ant-descriptions-item-label { + font-size: $text-size-header2; + } + + ul, li { + list-style-position: inside + } + + li { + font-size: $text-size; + margin-bottom: $basic-margin * 1.5; + } +}