31 lines · 984 B · TypeScript
RawDownload
import type { StaticScreenProps } from "@react-navigation/native";import { NativeStackScreenOptions } from "../../native/StackHeader";import { addProjectRemoteSourceLabel } from "@t3tools/client-runtime/operations/projects"; import { AddProjectRepositoryScreen } from "./AddProjectScreen"; type AddProjectRepositoryRouteParams = {  readonly environmentId?: string | string[];  readonly source?: string | string[];}; export function AddProjectRepositoryRoute({  route,}: StaticScreenProps<AddProjectRepositoryRouteParams>) {  const params = route.params ?? {};  const source = Array.isArray(params.source) ? params.source[0] : params.source;  const title =    source === "github" ||    source === "gitlab" ||    source === "bitbucket" ||    source === "azure-devops"      ? addProjectRemoteSourceLabel(source)      : "Git URL";   return (    <>      <NativeStackScreenOptions options={{ title }} />      <AddProjectRepositoryScreen {...params} />    </>  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t