Commit 22820690 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Use `Button` instead of `ButtonBase` in `ModerationBanner`

parent 71c74873
import { ButtonBase, FlagIcon, HideIcon } from '@hypothesis/frontend-shared';
import { Button, FlagIcon, HideIcon } from '@hypothesis/frontend-shared';
import classnames from 'classnames';
import type { Annotation } from '../../types/api';
......@@ -102,9 +102,10 @@ function ModerationBanner({
{annotation.hidden && <span>Hidden from users</span>}
</div>
<div className="self-center pr-2">
<ButtonBase
<Button
classes={classnames(
'px-1.5 py-1 bg-slate-1 text-grey-7 bg-grey-2',
'px-1.5 py-1',
'bg-slate-1 text-grey-7 bg-grey-2',
'enabled:hover:text-grey-9 enabled:hover:bg-grey-3 disabled:text-grey-5',
'aria-pressed:bg-grey-3 aria-expanded:bg-grey-3'
)}
......@@ -114,9 +115,11 @@ function ModerationBanner({
? 'Make this annotation visible to everyone'
: 'Hide this annotationn from non-moderators'
}
size="custom"
variant="custom"
>
{annotation.hidden ? 'Unhide' : 'Hide'}
</ButtonBase>
</Button>
</div>
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment