Skip to content

Commit

Permalink
cleaning up code connect
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 13, 2024
1 parent 1dfd20b commit 1a64c50
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 76 deletions.
6 changes: 1 addition & 5 deletions figma.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"<FIGMA_URL_ERROR_MESSAGE>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:3086",
"<FIGMA_URL_FIELD_GROUP>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:3121",
"<FIGMA_URL_FIELDSET>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762-3128",
"<FIGMA_URL_FOOTER>": "https://www.figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=7717-4142",
"<FIGMA_URL_FOOTER>": "https://www.figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=321-11357",
"<FIGMA_URL_HEADER>": "https://www.figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=2287-22651",
"<FIGMA_URL_HEADER_AUTH>": "https://www.figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=18-9389",
"<FIGMA_URL_ICON_BUTTON>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=11-11508",
Expand Down Expand Up @@ -68,10 +68,6 @@
"<FIGMA_URL_SWITCH>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:1701",
"<FIGMA_URL_TAB>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=3729-12963",
"<FIGMA_URL_TABS>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=3729-13362",
"<FIGMA_URL_TABLE_CELL>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:911",
"<FIGMA_URL_TABLE_HEADER>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:936",
"<FIGMA_URL_TABLE_ROW>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:961",
"<FIGMA_URL_TABLE>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=9762:987",
"<FIGMA_URL_TAG>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=56-8830",
"<FIGMA_URL_TAG_TOGGLE>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=157-10316",
"<FIGMA_URL_TAG_TOGGLE_GROUP>": "https://figma.com/design/J0KLPKXiONDRssXD1AX9Oi?node-id=157-10352",
Expand Down
6 changes: 3 additions & 3 deletions scripts/preview/Figma.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import {
Avatar,
AvatarGroup,
Button,
ButtonGroup,
Checkbox,
CheckboxField,
Dialog,
DialogActions,
DialogBody,
DialogDescription,
DialogTitle,
Expand Down Expand Up @@ -224,10 +224,10 @@ export const DialogStory: StoryObj<typeof Dialog> = {
<DialogBody>
<InputField name="amount" label="Amount" placeholder="$0.00" />
</DialogBody>
<DialogActions>
<ButtonGroup>
<Button>Refund</Button>
<Button variant="subtle">Cancel</Button>
</DialogActions>
</ButtonGroup>
</Dialog>
),
};
Expand Down
21 changes: 0 additions & 21 deletions src/ui/compositions/Headers/Headers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,24 +199,3 @@ export function Header({ className, ...props }: HeaderProps) {
</Section>
);
}
export type VerticalHeaderProps = Omit<SectionProps, "variant" | "padding">;
export function VerticalHeader({ className, ...props }: VerticalHeaderProps) {
return (
<Section
className="header"
elementType="header"
variant="subtle"
padding="sm"
{...props}
>
<Flex direction="column" alignSecondary="center" gap="md">
<Flex alignPrimary="center">
<Logo />
</Flex>
<Flex alignPrimary="center">
<HeaderAuth />
</Flex>
</Flex>
</Section>
);
}
46 changes: 0 additions & 46 deletions src/ui/primitives/Table/Table.figma.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/ui/primitives/Text/Text.figma.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ figma.connect(TextCode, "<FIGMA_URL_TEXT_CODE>", {
});
figma.connect(TextLinkList, "<FIGMA_URL_TEXT_LINK_LIST>", {
props: {
children: figma.string("Text Link List Item"),
children: figma.children("Text Link List Item"),
title: figma.boolean("Has Title", {
true: figma.children("Text Strong"),
false: undefined,
Expand Down

0 comments on commit 1a64c50

Please sign in to comment.