Skip to content

Commit 94737fd

Browse files
author
bunsenstraat
committed
resolve issues
1 parent 1b75431 commit 94737fd

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

libs/remix-ui/git/src/components/github/branchselect.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { selectStyles, selectTheme } from '../../types/styles';
55
import { gitPluginContext } from '../gitui';
66

77
interface BranchySelectProps {
8-
select: (branch:{ name: string }) => void;
8+
select: (branch: { name: string }) => void;
99
}
1010

1111
export const BranchSelect = (props: BranchySelectProps) => {
@@ -15,10 +15,11 @@ export const BranchSelect = (props: BranchySelectProps) => {
1515

1616
useEffect(() => {
1717
if (context.remoteBranches && context.remoteBranches.length > 0) {
18-
const options = context.remoteBranches && context.remoteBranches.length > 0 && context.remoteBranches.map(branch => {
19-
return { value: branch.name, label: branch.name }
20-
}
21-
)
18+
const options = context.remoteBranches
19+
&& context.remoteBranches.length > 0
20+
&& context.remoteBranches.map(branch => {
21+
return { value: branch.name, label: branch.name }
22+
})
2223
setBranchOptions(options)
2324
} else {
2425
setBranchOptions(null)
@@ -39,7 +40,7 @@ export const BranchSelect = (props: BranchySelectProps) => {
3940
options={branchOptions}
4041
className="mt-1"
4142
id="branch-select"
42-
onChange={(e: any) =>selectRemoteBranch(e)}
43+
onChange={(e: any) => selectRemoteBranch(e)}
4344
theme={selectTheme}
4445
styles={selectStyles}
4546
isClearable={true}

libs/remix-ui/git/src/components/github/devicecode.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ export const GetDeviceCode = () => {
5454
// convert response to json
5555
const response = await accestokenresponse.data;
5656

57-
if (response.error) {
58-
59-
}
60-
6157
if (response.access_token) {
6258
setAuthorized(true)
6359
await pluginActions.saveToken(response.access_token)

libs/remix-ui/git/src/components/navigation/branchedetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const BrancheDetailsNavigation = (props: BrancheDetailsNavigationProps) =
5252
singleBranch: true,
5353
relative: true
5454
})
55-
//actions.fetch(null, branch.name, null, null, false, true)
55+
5656
}
5757

5858
return (

libs/remix-ui/git/src/components/panels/clone.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const Clone = () => {
3838
depth: cloneDepth,
3939
singleBranch: !cloneAllBranches
4040
})
41-
//await actions.clone(cloneUrl, cloneBranch, cloneDepth, !cloneAllBranches)
4241
}
4342

4443
const onCloneBranchChange = (value: string) => {

0 commit comments

Comments
 (0)