FIX: apply copilot suggestion :)
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
eb8b129431
commit
1eea2a8c46
@@ -274,7 +274,6 @@ function Toolbar(properties: ToolbarProperties) {
|
|||||||
disabled={!canEdit}
|
disabled={!canEdit}
|
||||||
title={t("toolbar.font_color")}
|
title={t("toolbar.font_color")}
|
||||||
ref={fontColorButton}
|
ref={fontColorButton}
|
||||||
$underlinedColor={properties.fontColor}
|
|
||||||
onClick={() => setFontColorPickerOpen(true)}
|
onClick={() => setFontColorPickerOpen(true)}
|
||||||
>
|
>
|
||||||
<Type />
|
<Type />
|
||||||
@@ -286,7 +285,6 @@ function Toolbar(properties: ToolbarProperties) {
|
|||||||
disabled={!canEdit}
|
disabled={!canEdit}
|
||||||
title={t("toolbar.fill_color")}
|
title={t("toolbar.fill_color")}
|
||||||
ref={fillColorButton}
|
ref={fillColorButton}
|
||||||
$underlinedColor={properties.fillColor}
|
|
||||||
onClick={() => setFillColorPickerOpen(true)}
|
onClick={() => setFillColorPickerOpen(true)}
|
||||||
>
|
>
|
||||||
<PaintBucket />
|
<PaintBucket />
|
||||||
@@ -501,10 +499,9 @@ const ToolbarContainer = styled("div")`
|
|||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
type TypeButtonProperties = { $pressed: boolean; $underlinedColor?: string };
|
type TypeButtonProperties = { $pressed: boolean };
|
||||||
export const StyledButton = styled("button", {
|
export const StyledButton = styled("button", {
|
||||||
shouldForwardProp: (prop) =>
|
shouldForwardProp: (prop) => prop !== "$pressed",
|
||||||
prop !== "$pressed" && prop !== "$underlinedColor",
|
|
||||||
})<TypeButtonProperties>(({ disabled, $pressed }) => {
|
})<TypeButtonProperties>(({ disabled, $pressed }) => {
|
||||||
const result = {
|
const result = {
|
||||||
width: "24px",
|
width: "24px",
|
||||||
|
|||||||
Reference in New Issue
Block a user