Add Icon to roles (#10842)
## Context Adding icon column to role table to distinguish roles. <img width="621" alt="Screenshot 2025-03-13 at 11 02 37" src="https://github.com/user-attachments/assets/dc7b121c-2901-4599-9638-d5dcdf443999" />
This commit is contained in:
@ -20,7 +20,7 @@ const StyledInputContainer = styled.div`
|
||||
`;
|
||||
|
||||
type RoleSettingsProps = {
|
||||
role: Pick<Role, 'id' | 'label' | 'description'>;
|
||||
role: Pick<Role, 'id' | 'label' | 'description' | 'icon'>;
|
||||
};
|
||||
|
||||
export const RoleSettings = ({ role }: RoleSettingsProps) => {
|
||||
@ -30,7 +30,7 @@ export const RoleSettings = ({ role }: RoleSettingsProps) => {
|
||||
<StyledInputContainer>
|
||||
<IconPicker
|
||||
disabled={true}
|
||||
selectedIconKey={'IconUser'}
|
||||
selectedIconKey={role.icon ?? 'IconUser'}
|
||||
onChange={() => {}}
|
||||
/>
|
||||
</StyledInputContainer>
|
||||
|
||||
Reference in New Issue
Block a user