Remove special cases for some buttons with text (#3412)

* Toggle.Button -> Toggle.ButtonWithText

* Simplify Prompt.Cancel/Action

* Move lines down for better diff

* Remove ButtonWithText

* Simplify types
This commit is contained in:
dan
2024-04-05 14:57:53 +01:00
committed by GitHub
parent 9b087b721d
commit 49266c355e
9 changed files with 106 additions and 99 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ export function Dialogs() {
description, as well as two actions.
</Prompt.DescriptionText>
<Prompt.Actions>
<Prompt.Cancel>Cancel</Prompt.Cancel>
<Prompt.Action onPress={() => {}}>Confirm</Prompt.Action>
<Prompt.Cancel />
<Prompt.Action cta="Confirm" onPress={() => {}} />
</Prompt.Actions>
</Prompt.Outer>