about summary refs log tree commit diff
path: root/src/view/com/auth/server-input/index.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-05 14:57:53 +0100
committerGitHub <noreply@github.com>2024-04-05 14:57:53 +0100
commit49266c355ea781cbd7a0b373e64143da7740c91e (patch)
tree5f0a39882c30d2b8a8c5d8f952923c4a6fc3c607 /src/view/com/auth/server-input/index.tsx
parent9b087b721dee0a6a33bb85ac5098989ab965d658 (diff)
downloadvoidsky-49266c355ea781cbd7a0b373e64143da7740c91e.tar.zst
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
Diffstat (limited to 'src/view/com/auth/server-input/index.tsx')
-rw-r--r--src/view/com/auth/server-input/index.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/auth/server-input/index.tsx b/src/view/com/auth/server-input/index.tsx
index 8aa23c263..2380fffe2 100644
--- a/src/view/com/auth/server-input/index.tsx
+++ b/src/view/com/auth/server-input/index.tsx
@@ -87,13 +87,17 @@ export function ServerInputDialog({
             values={fixedOption}
             onChange={setFixedOption}>
             <ToggleButton.Button name={BSKY_SERVICE} label={_(msg`Bluesky`)}>
-              {_(msg`Bluesky`)}
+              <ToggleButton.ButtonText>
+                {_(msg`Bluesky`)}
+              </ToggleButton.ButtonText>
             </ToggleButton.Button>
             <ToggleButton.Button
               testID="customSelectBtn"
               name="custom"
               label={_(msg`Custom`)}>
-              {_(msg`Custom`)}
+              <ToggleButton.ButtonText>
+                {_(msg`Custom`)}
+              </ToggleButton.ButtonText>
             </ToggleButton.Button>
           </ToggleButton.Group>