UI/treewide: replace all {button,icon} component

This commit is contained in:
Johannes Kirschbauer
2024-11-27 10:05:54 +01:00
parent cc84a53b6d
commit e7a9344665
22 changed files with 272 additions and 240 deletions

View File

@@ -9,6 +9,7 @@ import {
shift,
} from "@floating-ui/dom";
import cx from "classnames";
import { Button } from "./button";
interface MenuProps {
/**
@@ -53,7 +54,8 @@ export const Menu = (props: MenuProps) => {
return (
<div>
<button
<Button
variant="light"
popovertarget={props.popoverid}
popovertargetaction="toggle"
ref={setReference}
@@ -64,7 +66,7 @@ export const Menu = (props: MenuProps) => {
{...props.buttonProps}
>
{props.label}
</button>
</Button>
<div
popover="auto"
id={props.popoverid}