Skip to content

Commit

Permalink
fix(clerk-js): Add detructive variant to all destructive Action Card …
Browse files Browse the repository at this point in the history
…components (#2422)
  • Loading branch information
anagstef authored Dec 20, 2023
1 parent 62936cd commit 07a3cfa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .changeset/dirty-swans-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const DomainList = withGate(
</ProfileSection.Item>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveDomainScreen domainId={domain.id} />
</Action.Card>
</Action.Open>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const ConnectedAccountsSection = () => {
</Action.Closed>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveConnectedAccountScreen accountId={account.id} />
</Action.Card>
</Action.Open>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const EmailsSection = () => {
</Action.Closed>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveEmailScreen emailId={email.id} />
</Action.Card>
</Action.Open>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const MfaSection = () => {
</ProfileSection.Item>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveMfaTOTPScreen />
</Action.Card>
</Action.Open>
Expand Down Expand Up @@ -89,7 +89,7 @@ export const MfaSection = () => {
</ProfileSection.Item>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveMfaPhoneCodeScreen phoneId={phone.id} />
</Action.Card>
</Action.Open>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const PhoneSection = () => {
</Action.Closed>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemovePhoneScreen phoneId={phone.id} />
</Action.Card>
</Action.Open>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Web3Section = () => {
</Action.Closed>

<Action.Open value='remove'>
<Action.Card>
<Action.Card variant='destructive'>
<RemoveWeb3WalletScreen walletId={wallet.id} />
</Action.Card>
</Action.Open>
Expand Down

0 comments on commit 07a3cfa

Please sign in to comment.