diff --git a/libs/remix-api/src/lib/types/git.ts b/libs/remix-api/src/lib/types/git.ts index 6f24280b47..463e515715 100644 --- a/libs/remix-api/src/lib/types/git.ts +++ b/libs/remix-api/src/lib/types/git.ts @@ -1,7 +1,5 @@ import { Endpoints } from "@octokit/types" -import { CustomRemixApi } from "@remix-api" import { AuthCallback, HttpClient, ReadCommitResult } from "isomorphic-git" -import { Plugin } from "@remixproject/engine"; export type branchDifference = { uniqueHeadCommits: ReadCommitResult[], @@ -206,6 +204,3 @@ export type GitHubUser = Partial & { export type userEmails = Endpoints["GET /user/emails"]["response"]["data"] -export interface IGitUi { - plugin: Plugin -} \ No newline at end of file diff --git a/libs/remix-ui/git/src/components/gitui.tsx b/libs/remix-ui/git/src/components/gitui.tsx index 013fe4bf25..b7444e0b8d 100644 --- a/libs/remix-ui/git/src/components/gitui.tsx +++ b/libs/remix-ui/git/src/components/gitui.tsx @@ -4,7 +4,7 @@ import { loadFiles, setCallBacks } from '../lib/listeners' import { openDiff, openFile, openFolderInSameWindow, sendToMatomo, saveToken, setModifiedDecorator, setPlugin, setUntrackedDecorator, statusChanged } from '../lib/pluginActions' import { gitActionsContext, pluginActionsContext } from '../state/context' import { gitReducer } from '../state/gitreducer' -import { defaultGitState, defaultLoaderState, gitMatomoEventTypes, gitState, gitUIPanels, loaderState } from '../types' +import { IGitUi, defaultGitState, defaultLoaderState, gitMatomoEventTypes, gitState, gitUIPanels, loaderState } from '../types' import { Accordion, Button } from "react-bootstrap"; import { CommitMessage } from './buttons/commitmessage' import { Commits } from './panels/commits' @@ -31,9 +31,8 @@ import { GitHubCredentials } from './panels/githubcredentials' import { Setup } from './panels/setup' import { Init } from './panels/init' import { Disabled } from './disabled' -import { AppContext, platformContext } from '@remix-ui/app' +import { AppContext, appPlatformTypes, platformContext } from '@remix-ui/app' import { Version } from './panels/version' -import { IGitUi } from '@remix-api' export const gitPluginContext = React.createContext(defaultGitState) export const loaderContext = React.createContext(defaultLoaderState) @@ -248,6 +247,8 @@ export const GitUI = (props: IGitUi) => { + { platform === appPlatformTypes.desktop && + } diff --git a/libs/remix-ui/git/src/types/index.ts b/libs/remix-ui/git/src/types/index.ts index 97724104d2..f87ee222f8 100644 --- a/libs/remix-ui/git/src/types/index.ts +++ b/libs/remix-ui/git/src/types/index.ts @@ -1,6 +1,12 @@ import { Endpoints } from "@octokit/types" import { GitHubUser, branch, branchDifference, commitChange, pagedCommits, remote, remoteBranch, repository, syncStatus, userEmails } from "@remix-api" import { ReadCommitResult } from "isomorphic-git" +import { Plugin } from "@remixproject/engine"; +import { CustomRemixApi } from "@remix-api" + +export interface IGitUi { + plugin: Plugin + } export type gitState = { currentBranch: branch