Skip to content

Commit

Permalink
bugfixing refs
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed May 22, 2024
1 parent 92b5420 commit 6d3406e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/ui/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { clsx } from "clsx";
import React from "react";
import React, { ComponentPropsWithoutRef } from "react";
import {
AnchorOrButton,
type AnchorOrButtonProps,
Expand Down Expand Up @@ -30,6 +30,7 @@ export const DestructiveButton = React.forwardRef(function Button(
});

type ButtonBaseProps = {
type?: ComponentPropsWithoutRef<"button">["type"];
scheme?: "default" | "danger";
size?: "sm" | "md";
variant?: "default" | "secondary" | "stroke" | "subtle";
Expand Down
8 changes: 0 additions & 8 deletions src/ui/Figma.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ export const ButtonStory: StoryObj<typeof Button> = {
control: { type: "select" },
options: ["sm", "md"],
},
scheme: {
control: { type: "select" },
options: ["default", "positive", "warning", "danger", "neutral"],
},
variant: {
control: { type: "select" },
options: ["default", "secondary", "stroke", "subtle"],
Expand Down Expand Up @@ -301,10 +297,6 @@ export const IconButtonStory: StoryObj<typeof IconButton> = {
control: { type: "select" },
options: ["sm", "md"],
},
scheme: {
control: { type: "select" },
options: ["default", "positive", "warning", "danger", "neutral"],
},
variant: {
control: { type: "select" },
options: ["default", "secondary", "stroke", "subtle"],
Expand Down
8 changes: 2 additions & 6 deletions src/ui/Message/Message.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ figma.connect(
Secondary: "secondary",
}),
},
example: ({ hasIcon, isDismissible, actions, body, title, variant }) => (
<Message
hasIcon={hasIcon}
isDismissible={isDismissible}
variant={variant}
>
example: ({ hasIcon, isDismissible, actions, body, title }) => (
<Message hasIcon={hasIcon} isDismissible={isDismissible}>
<MessageTitle>{title}</MessageTitle>
{body}
{actions}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
ListBox,
ListBoxItem,
type ListBoxItemProps,
} from "ui/Listbox/ListBox";
} from "ui/ListBox/ListBox";
import "./select.css";

export interface SelectFieldProps<T extends object>
Expand Down

0 comments on commit 6d3406e

Please sign in to comment.