Skip to content

Commit

Permalink
fix: linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Oct 30, 2024
1 parent c124253 commit 67e474d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 28 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@mui/joy": "5.0.0-beta.48",
"@radix-ui/react-popover": "^1.1.2",
"@reduxjs/toolkit": "^2.3.0",
"@usememos/mui": "0.0.1-alpha.23",
"@usememos/mui": "0.0.1-alpha.24",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"copy-to-clipboard": "^3.3.3",
Expand Down
10 changes: 5 additions & 5 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const LocationSelector = (props: Props) => {

return (
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
<PopoverTrigger>
<Button className="flex items-center justify-center" size="sm" variant="plain" asChild>
<PopoverTrigger asChild>
<Button className="flex items-center justify-center" size="sm" variant="plain">
<MapPinIcon className="w-5 h-5 mx-auto shrink-0" />
{props.location && (
<>
Expand Down
14 changes: 4 additions & 10 deletions web/src/components/MemoEditor/ActionButton/MarkdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,10 @@ const MarkdownMenu = (props: Props) => {

return (
<Dropdown>
<MenuButton
slots={{ root: Button }}
slotProps={{
root: {
size: "sm",
variant: "plain",
},
}}
>
<SquareSlashIcon className="w-5 h-5 mx-auto" />
<MenuButton slots={{ root: "div" }}>
<Button size="sm" variant="plain">
<SquareSlashIcon className="w-5 h-5 mx-auto" />
</Button>
</MenuButton>
<Menu className="text-sm" size="sm" placement="bottom-start">
<MenuItem onClick={handleCodeBlockClick}>
Expand Down
14 changes: 4 additions & 10 deletions web/src/components/MemoEditor/ActionButton/TagSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,10 @@ const TagSelector = (props: Props) => {

return (
<Dropdown open={open} onOpenChange={(_, isOpen) => setOpen(isOpen)}>
<MenuButton
slots={{ root: Button }}
slotProps={{
root: {
size: "sm",
variant: "plain",
},
}}
>
<HashIcon className="w-5 h-5 mx-auto" />
<MenuButton slots={{ root: "div" }}>
<Button size="sm" variant="plain">
<HashIcon className="w-5 h-5 mx-auto" />
</Button>
</MenuButton>
<Menu className="relative text-sm" component="div" size="sm" placement="bottom-start">
<div ref={containerRef}>
Expand Down

0 comments on commit 67e474d

Please sign in to comment.