Skip to content

Commit

Permalink
refactor: rename silent variant to unstyled (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf authored Jul 30, 2024
1 parent 6850003 commit 8072a91
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const NotificationContent = () => {
)}
<div className="px-4">
<Anchor
variant="silent"
variant="unstyled"
className={cn(
buttonVariants({ variant: "ghost", size: "md" }),
"w-full gap-2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const Web3Inbox = () => {
</time>
{message.url && (
<Anchor
variant="silent"
variant="unstyled"
href={message.url}
className={cn(
buttonVariants({
Expand Down
2 changes: 1 addition & 1 deletion src/v2/components/GuildCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const GuildCard: React.FC<Props> = ({ guildData }) => (
)

export const GuildCardWithLink: typeof GuildCard = ({ guildData }) => (
<Anchor href={guildData.urlName} className="rounded-2xl" variant="silent">
<Anchor href={guildData.urlName} className="rounded-2xl" variant="unstyled">
<GuildCard guildData={guildData} />
</Anchor>
)
Expand Down
6 changes: 3 additions & 3 deletions src/v2/components/ui/Anchor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ export const Highlighted: Story = {
},
}

export const Silent: Story = {
export const Unstyled: Story = {
args: {
...Default.args,
variant: "silent",
children: "Silent",
variant: "unstyled",
children: "Unstyled",
},
argTypes: {
...Default.argTypes,
Expand Down
2 changes: 1 addition & 1 deletion src/v2/components/ui/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const anchorVariants = cva(
default: "text-foreground hover:underline",
highlighted: "text-anchor-foreground hover:underline",
muted: "text-muted-foreground hover:underline",
silent: "",
unstyled: "",
},
},
defaultVariants: {
Expand Down

0 comments on commit 8072a91

Please sign in to comment.