|
|
@ -4,11 +4,7 @@ import { gitPluginContext } from "../gitui" |
|
|
|
import { Remoteselect } from "./remoteselect" |
|
|
|
import { Remoteselect } from "./remoteselect" |
|
|
|
import { RemotesImport } from "./remotesimport" |
|
|
|
import { RemotesImport } from "./remotesimport" |
|
|
|
|
|
|
|
|
|
|
|
export interface RemotesProps { |
|
|
|
export const Remotes = () => { |
|
|
|
plugin: any |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const Remotes = (props: RemotesProps) => { |
|
|
|
|
|
|
|
const context = React.useContext(gitPluginContext) |
|
|
|
const context = React.useContext(gitPluginContext) |
|
|
|
const actions = React.useContext(gitActionsContext) |
|
|
|
const actions = React.useContext(gitActionsContext) |
|
|
|
const [remoteName, setRemoteName] = React.useState<string>('') |
|
|
|
const [remoteName, setRemoteName] = React.useState<string>('') |
|
|
@ -31,7 +27,7 @@ export const Remotes = (props: RemotesProps) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<div data-id="remotes-panel-content" className="d-flex flex-column"> |
|
|
|
<div data-id="remotes-panel-content" className="d-flex flex-column"> |
|
|
|
<RemotesImport plugin={props.plugin} /> |
|
|
|
<RemotesImport /> |
|
|
|
<hr className="mt-0 border border-2" /> |
|
|
|
<hr className="mt-0 border border-2" /> |
|
|
|
{context.remotes && context.remotes.length ? |
|
|
|
{context.remotes && context.remotes.length ? |
|
|
|
<div> |
|
|
|
<div> |
|
|
|