Skip to content

Commit

Permalink
Display icons next to group type names
Browse files Browse the repository at this point in the history
Add icons next to group type names that matches the icon used for that type in
other contexts, such as the client's group menu.
  • Loading branch information
robertknight committed Dec 12, 2024
1 parent 52d46fa commit 9bfe5e5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions h/static/scripts/group-forms/components/CreateEditGroupForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { useContext, useEffect, useId, useState } from 'preact/hooks';

import { Button, RadioGroup } from '@hypothesis/frontend-shared';
import {
Button,
RadioGroup,
LockIcon,
GlobeAltIcon,
GlobeAltLockIcon,
} from '@hypothesis/frontend-shared';
import { Config } from '../config';
import type { Group } from '../config';
import { callAPI } from '../utils/api';
Expand Down Expand Up @@ -267,19 +273,19 @@ export default function CreateEditGroupForm({
value="private"
subtitle="Only members can create and read annotations."
>
Private
<LockIcon /> Private
</RadioGroup.Radio>
<RadioGroup.Radio
value="restricted"
subtitle="Only members can create annotations, anyone can read them."
>
Restricted
<GlobeAltLockIcon /> Restricted
</RadioGroup.Radio>
<RadioGroup.Radio
value="open"
subtitle="Anyone can create and read annotations."
>
Open
<GlobeAltIcon /> Open
</RadioGroup.Radio>
</RadioGroup>
</>
Expand Down

0 comments on commit 9bfe5e5

Please sign in to comment.