From d016daf6ccd16a1cb55da17c8e943a9d23303c1b Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 2 Jul 2024 12:08:51 +0100 Subject: [PATCH] relocate the git fetch button. format code. --- .../git/src/components/github/repositoryselect.tsx | 2 +- .../src/components/github/selectandclonerepositories.tsx | 8 ++++---- libs/remix-ui/git/src/components/panels/clone.tsx | 4 ++-- libs/remix-ui/git/src/components/panels/tokenWarning.tsx | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/remix-ui/git/src/components/github/repositoryselect.tsx b/libs/remix-ui/git/src/components/github/repositoryselect.tsx index dab826beb9..212ce295dd 100644 --- a/libs/remix-ui/git/src/components/github/repositoryselect.tsx +++ b/libs/remix-ui/git/src/components/github/repositoryselect.tsx @@ -64,7 +64,7 @@ const RepositorySelect = (props: RepositorySelectProps) => { }; return ( - <> { diff --git a/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx b/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx index 54054605a8..d62b761118 100644 --- a/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx +++ b/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx @@ -44,15 +44,15 @@ export const SelectAndCloneRepositories = (props: RepositoriesProps) => { return ( <> - + - {repo &&} + { repo && } - {repo && branch && branch.name && branch.name !== '0' ? + { repo && branch && branch.name && branch.name !== '0' ? : null} + }}>clone {repo.full_name}:{branch.name} : null } ) diff --git a/libs/remix-ui/git/src/components/panels/clone.tsx b/libs/remix-ui/git/src/components/panels/clone.tsx index 96d0388767..09e32e3e1d 100644 --- a/libs/remix-ui/git/src/components/panels/clone.tsx +++ b/libs/remix-ui/git/src/components/panels/clone.tsx @@ -68,6 +68,8 @@ export const Clone = ({ plugin }: CloneProps) => { return ( <>
+ +
onGitHubCloneUrlChange(e.target.value)} aria-describedby="urlprepend" /> @@ -77,8 +79,6 @@ export const Clone = ({ plugin }: CloneProps) => { clone() }}>clone
- -
diff --git a/libs/remix-ui/git/src/components/panels/tokenWarning.tsx b/libs/remix-ui/git/src/components/panels/tokenWarning.tsx index 7b713ea26a..bce647758e 100644 --- a/libs/remix-ui/git/src/components/panels/tokenWarning.tsx +++ b/libs/remix-ui/git/src/components/panels/tokenWarning.tsx @@ -9,11 +9,11 @@ export const TokenWarning = (props: TokenWarningProps) => { const context = React.useContext(gitPluginContext) return (<> {(context.gitHubUser && context.gitHubUser.login) ? null : -
  • - Generate and add a Git token to use this plugin. Tokens are found in { + + Generate and add a Git token to use this plugin. Tokens are added in { await props.plugin.call('menuicons', 'select', 'settings') }}>settings of the IDE. -
  • + } )