From 2324e82c6b19ecb3f19015f94e97ded373687896 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 5 Jun 2024 09:24:51 +0200 Subject: [PATCH] lint --- libs/remix-ui/git/src/components/buttons/commitmessage.tsx | 2 +- .../remix-ui/git/src/components/buttons/sourceControlBase.tsx | 4 ++-- .../git/src/components/panels/branches/localbranchdetails.tsx | 2 +- libs/remix-ui/git/src/components/panels/commands/pushpull.tsx | 4 ++-- libs/remix-ui/git/src/lib/gitactions.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/remix-ui/git/src/components/buttons/commitmessage.tsx b/libs/remix-ui/git/src/components/buttons/commitmessage.tsx index 545162a59f..55db92e0c1 100644 --- a/libs/remix-ui/git/src/components/buttons/commitmessage.tsx +++ b/libs/remix-ui/git/src/components/buttons/commitmessage.tsx @@ -86,7 +86,7 @@ export const CommitMessage = () => { } const setButtonStateValues = () => { - + if (!commitNotAllowed() || context.allchangesnotstaged.length > 0 || context.staged.length > 0){ if (context.allchangesnotstaged.length == 0 && context.staged.length == 0 && message.value === "" && publishEnabled()){ setButtonState(buttonStateValues.PublishBranch) diff --git a/libs/remix-ui/git/src/components/buttons/sourceControlBase.tsx b/libs/remix-ui/git/src/components/buttons/sourceControlBase.tsx index 7073fdd01e..7856059c2c 100644 --- a/libs/remix-ui/git/src/components/buttons/sourceControlBase.tsx +++ b/libs/remix-ui/git/src/components/buttons/sourceControlBase.tsx @@ -32,7 +32,7 @@ export const SourceControlBase = (props: SourceControlButtonsProps) => { const [commitsBehind, setCommitsBehind] = useState([]) useEffect(() => { - + setDefaultRemote() if (remote && branch && context.branchDifferences && context.branchDifferences[`${remote.name}/${branch.name}`]) { setCommitsAhead(context.branchDifferences[`${remote.name}/${branch.name}`]?.uniqueHeadCommits) @@ -70,7 +70,7 @@ export const SourceControlBase = (props: SourceControlButtonsProps) => { }, []) useEffect(() => { - + if (!props.branch) { setBranch(context.currentBranch) } diff --git a/libs/remix-ui/git/src/components/panels/branches/localbranchdetails.tsx b/libs/remix-ui/git/src/components/panels/branches/localbranchdetails.tsx index d30eaae785..3e93858d14 100644 --- a/libs/remix-ui/git/src/components/panels/branches/localbranchdetails.tsx +++ b/libs/remix-ui/git/src/components/panels/branches/localbranchdetails.tsx @@ -25,7 +25,7 @@ export const LocalBranchDetails = (props: BrancheDetailsProps) => { useEffect(() => { if (activePanel === "0") { - + if (lastPageNumber === 0) actions.getBranchCommits(branch, 1) actions.getBranchDifferences(branch, null, context) diff --git a/libs/remix-ui/git/src/components/panels/commands/pushpull.tsx b/libs/remix-ui/git/src/components/panels/commands/pushpull.tsx index fe933ac11f..8af4c07426 100644 --- a/libs/remix-ui/git/src/components/panels/commands/pushpull.tsx +++ b/libs/remix-ui/git/src/components/panels/commands/pushpull.tsx @@ -90,7 +90,7 @@ export const PushPull = () => { } useEffect(() => { - + const localBranches = context.branches && context.branches.length > 0 && context.branches .filter(branch => !branch.remote) .map(repo => { @@ -109,7 +109,7 @@ export const PushPull = () => { }, [context.branches]) useEffect(() => { - + // map context.repositories to options const options = context.remotes && context.remotes.length > 0 && context.remotes .map(repo => { diff --git a/libs/remix-ui/git/src/lib/gitactions.ts b/libs/remix-ui/git/src/lib/gitactions.ts index b7fea68983..9421161e47 100644 --- a/libs/remix-ui/git/src/lib/gitactions.ts +++ b/libs/remix-ui/git/src/lib/gitactions.ts @@ -710,7 +710,7 @@ export const getBranchDifferences = async (branch: branch, remote: remote, state } if (!remote) return try { - + const branchDifference: branchDifference = await plugin.call('dgitApi', 'compareBranches', { branch, remote