From c5741506cdbb9059910c911874f498719ded9e14 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 18 Jul 2024 07:50:08 +0200 Subject: [PATCH] some fixes --- .../git/src/components/github/branchselect.tsx | 2 +- .../git/src/components/github/devicecode.tsx | 16 +++++++++------- .../github/selectandclonerepositories.tsx | 2 +- .../git/src/components/panels/branches.tsx | 10 ++++++++++ .../remix-ui/git/src/components/panels/clone.tsx | 4 +++- .../src/components/panels/githubcredentials.tsx | 13 +++++++------ .../git/src/components/panels/remotes.tsx | 14 ++++++++------ .../git/src/components/panels/remoteselect.tsx | 16 +++++++++++++--- .../git/src/components/panels/remotesimport.tsx | 4 ++-- 9 files changed, 54 insertions(+), 27 deletions(-) diff --git a/libs/remix-ui/git/src/components/github/branchselect.tsx b/libs/remix-ui/git/src/components/github/branchselect.tsx index e272f266f9..1e87e195e9 100644 --- a/libs/remix-ui/git/src/components/github/branchselect.tsx +++ b/libs/remix-ui/git/src/components/github/branchselect.tsx @@ -38,7 +38,7 @@ export const BranchSelect = (props: BranchySelectProps) => { return (<>{branchOptions && branchOptions.length ? handleChangeTokenState(e.target.value)} /> + handleChangeTokenState(e.target.value)} />
- handleChangeUserNameState(e.target.value)} value={githubUsername} className="form-control mb-3" placeholder="Git username" type="text" id="githubUsername" /> - handleChangeEmailState(e.target.value)} value={githubEmail} className="form-control mb-3" placeholder="Git email" type="text" id="githubEmail" /> + handleChangeUserNameState(e.target.value)} value={githubUsername} className="form-control mb-3" placeholder="* Git username" type="text" id="githubUsername" /> + handleChangeEmailState(e.target.value)} value={githubEmail} className="form-control mb-3" placeholder="* Git email" type="text" id="githubEmail" />
- {scopeWarning? -
Your GitHub token may not have the correct permissions. Please use the login with GitHub feature.
:null} + {scopeWarning ? +
Your GitHub token may not have the correct permissions. Please use the login with GitHub feature.
: null}
); diff --git a/libs/remix-ui/git/src/components/panels/remotes.tsx b/libs/remix-ui/git/src/components/panels/remotes.tsx index 04b41436f2..59cc824a17 100644 --- a/libs/remix-ui/git/src/components/panels/remotes.tsx +++ b/libs/remix-ui/git/src/components/panels/remotes.tsx @@ -27,23 +27,25 @@ export const Remotes = () => { return ( <>
- -
{context.remotes && context.remotes.length ?
{context.remotes && context.remotes.map((remote, index) => { return ( - + ); })}
:
} - - onRemoteNameChange(e.target.value)} value={remoteName} className="form-control mb-3" type="text" id="remotename" /> - onUrlChange(e.target.value)} value={url} className="form-control mb-3" type="text" id="remoteurl" /> +
+ + +
+ + onRemoteNameChange(e.target.value)} value={remoteName} className="form-control mb-2" type="text" id="remotename" /> + onUrlChange(e.target.value)} value={url} className="form-control mb-2" type="text" id="remoteurl" />