From 477a24e8be70bc1d4355d547cc7877d381f73897 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 3 Jul 2024 10:04:44 +0100 Subject: [PATCH] remove unnecessary plugin props --- .../src/components/github/selectandclonerepositories.tsx | 3 +-- libs/remix-ui/git/src/components/gitui.tsx | 2 +- libs/remix-ui/git/src/components/panels/clone.tsx | 8 ++------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx b/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx index d62b761118..c90c252eb2 100644 --- a/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx +++ b/libs/remix-ui/git/src/components/github/selectandclonerepositories.tsx @@ -9,7 +9,6 @@ import { TokenWarning } from "../panels/tokenWarning"; interface RepositoriesProps { cloneDepth?: number cloneAllBranches?: boolean - plugin: any } export const SelectAndCloneRepositories = (props: RepositoriesProps) => { @@ -45,7 +44,7 @@ export const SelectAndCloneRepositories = (props: RepositoriesProps) => { return ( <> - + { repo && } diff --git a/libs/remix-ui/git/src/components/gitui.tsx b/libs/remix-ui/git/src/components/gitui.tsx index 2086e2349d..083a6da59b 100644 --- a/libs/remix-ui/git/src/components/gitui.tsx +++ b/libs/remix-ui/git/src/components/gitui.tsx @@ -215,7 +215,7 @@ export const GitUI = (props: IGitUi) => {
-
+

diff --git a/libs/remix-ui/git/src/components/panels/clone.tsx b/libs/remix-ui/git/src/components/panels/clone.tsx index 5b6605879d..2454cecf84 100644 --- a/libs/remix-ui/git/src/components/panels/clone.tsx +++ b/libs/remix-ui/git/src/components/panels/clone.tsx @@ -8,11 +8,7 @@ import { SelectAndCloneRepositories } from "../github/selectandclonerepositories import { RemixUiCheckbox } from "@remix-ui/checkbox" import GitUIButton from "../buttons/gituibutton" -export interface CloneProps { - plugin: any -} - -export const Clone = ({ plugin }: CloneProps) => { +export const Clone = () => { const context = React.useContext(gitPluginContext) const actions = React.useContext(gitActionsContext) const [cloneUrl, setCloneUrl] = useLocalStorage( @@ -68,7 +64,7 @@ export const Clone = ({ plugin }: CloneProps) => { return ( <>
- +
onGitHubCloneUrlChange(e.target.value)} aria-describedby="urlprepend" />