From 5e12b3c64ae0c6895ad7f2ae0fb92bea1befdc7f Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Sun, 2 Jun 2024 15:13:55 -0500 Subject: [PATCH] refactor: use tailwind classes in place of spaces --- src/routes/LoginWithOAuthApp.tsx | 4 ++-- src/routes/LoginWithPersonalAccessToken.tsx | 4 ++-- src/routes/Settings.tsx | 6 +++--- .../LoginWithOAuthApp.test.tsx.snap | 16 ++++++++++------ .../LoginWithPersonalAccessToken.test.tsx.snap | 14 ++++++++++---- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/routes/LoginWithOAuthApp.tsx b/src/routes/LoginWithOAuthApp.tsx index f95ff345f..1b10158a7 100644 --- a/src/routes/LoginWithOAuthApp.tsx +++ b/src/routes/LoginWithOAuthApp.tsx @@ -88,8 +88,8 @@ export const LoginWithOAuthApp: FC = () => { icon={PersonIcon} size={12} url={getNewOAuthAppURL(values.hostname)} - />{' '} - on GitHub then paste your{' '} + /> + on GitHub then paste your client id and client secret below. } diff --git a/src/routes/LoginWithPersonalAccessToken.tsx b/src/routes/LoginWithPersonalAccessToken.tsx index 21fdc6961..26b79cea6 100644 --- a/src/routes/LoginWithPersonalAccessToken.tsx +++ b/src/routes/LoginWithPersonalAccessToken.tsx @@ -81,8 +81,8 @@ export const LoginWithPersonalAccessToken: FC = () => { icon={KeyIcon} size={12} url={getNewTokenURL(values.hostname)} - />{' '} - on GitHub and paste above. + /> + on GitHub and paste above.
The required scopes will be selected for you. diff --git a/src/routes/Settings.tsx b/src/routes/Settings.tsx index 3bdbb8f75..25bfdb35d 100644 --- a/src/routes/Settings.tsx +++ b/src/routes/Settings.tsx @@ -174,15 +174,15 @@ export const SettingsRoute: FC = () => { tooltip={
- See{' '} + See {' '} + for more details.
diff --git a/src/routes/__snapshots__/LoginWithOAuthApp.test.tsx.snap b/src/routes/__snapshots__/LoginWithOAuthApp.test.tsx.snap index 0b21d7712..e19339827 100644 --- a/src/routes/__snapshots__/LoginWithOAuthApp.test.tsx.snap +++ b/src/routes/__snapshots__/LoginWithOAuthApp.test.tsx.snap @@ -102,9 +102,11 @@ exports[`routes/LoginWithOAuthApp.tsx renders correctly 1`] = ` Create new OAuth App - - on GitHub then paste your - + + on GitHub then paste your + @@ -302,9 +304,11 @@ exports[`routes/LoginWithOAuthApp.tsx renders correctly 1`] = ` Create new OAuth App - - on GitHub then paste your - + + on GitHub then paste your + diff --git a/src/routes/__snapshots__/LoginWithPersonalAccessToken.test.tsx.snap b/src/routes/__snapshots__/LoginWithPersonalAccessToken.test.tsx.snap index 63cafcd99..c64aeb84a 100644 --- a/src/routes/__snapshots__/LoginWithPersonalAccessToken.test.tsx.snap +++ b/src/routes/__snapshots__/LoginWithPersonalAccessToken.test.tsx.snap @@ -127,8 +127,11 @@ exports[`routes/LoginWithPersonalAccessToken.tsx renders correctly 1`] = ` Generate a PAT - - on GitHub and paste above. + + on GitHub and paste above. +
Generate a PAT - - on GitHub and paste above. + + on GitHub and paste above. +