Skip to content

Commit

Permalink
fix: badge outline
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Aug 2, 2022
1 parent c0f5bd3 commit d992490
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/Mentions/MentionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ import { Member } from '@graasp/ui/dist/types';
import MentionsDialog from './MentionsDialog';
import MentionsTable from './MentionsTable';

const useStyles = makeStyles((theme) => ({
badge: {
'& .MuiBadge-badge': {
border: `2px solid ${theme.palette.background.paper}`,
},
},
}));

type Props = {
color?: 'primary' | 'secondary';
useMentions: (options?: { getUpdates?: boolean | undefined } | undefined) => {
Expand All @@ -41,6 +33,17 @@ const MentionButton: FC<Props> = ({
deleteMentionFunction,
clearAllMentionsFunction,
}) => {
const useStyles = makeStyles((theme) => ({
badge: {
'& .MuiBadge-badge': {
border: `2px solid ${
color === 'primary'
? theme.palette.background.paper
: theme.palette.primary.main
}`,
},
},
}));
const classes = useStyles();

const { data: memberMentions } = useMentions();
Expand Down

0 comments on commit d992490

Please sign in to comment.