Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: link several environments at once #39426

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/39426/headmerged by juliusmarminge View on GitHub

Showing 35 changed files with 12 additions and 6 deletions (loading 34).

x
0 of 35 viewed, 35 left
12 additions and 6 deletionsapps/mobile/src/features/connection/ConnectionsRouteScreen.tsxModified
View file
@@ -3,7 +3,7 @@
​
import { useNavigation } from "@react-navigation/native";
import type { EnvironmentId } from "@t3tools/contracts";
-import { useState } from "react";
+import { Fragment, useState } from "react";
import { View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
​
@@ -12,6 +12,7 @@
import { LocalEnvironmentList } from "./LocalEnvironmentList";
import { PullRequestRoutingSettings } from "./PullRequestRoutingSettings";
import { LinkedEnvironmentsSection } from "./LinkedEnvironmentsSection";
+import { LinkSeveralEnvironmentsAction } from "./LinkSeveralEnvironments";
​
export function ConnectionsRouteScreen() {
const gt = useGT();
@@ -65,11 +66,16 @@
{connectedEnvironments
.filter((environment) => environment.connectionState === "connected")
.map((environment) => (
- <LinkedEnvironmentsSection
- key={environment.environmentId}
- environmentId={environment.environmentId}
- environmentLabel={environment.environmentLabel}
- />
+ <Fragment key={environment.environmentId}>
+ <LinkedEnvironmentsSection