Remove dead CARD_SHADOW exports and debug console.log statements
- Remove unused CARD_SHADOW and CARD_SHADOW_DARK constants from ConnectionSheetButton.tsx - Remove three debug console.log statements with [new task flow] prefix from new-task-flow-provider.tsx
This commit is contained in:
2 files changed
-47
No files matched your search
@@ -5,28 +5,6 @@ import { useThemeColor } from "../../lib/useThemeColor";
|
||||
import { AppText as Text } from "../../components/AppText";
|
||||
import { cn } from "../../lib/cn";
|
||||
|
||||
const CARD_SHADOW = Platform.select({
|
||||
ios: {
|
||||
shadowColor: "rgba(23,23,23,0.08)",
|
||||
shadowOffset: { width: 0, height: 4 },
|
||||
shadowOpacity: 1,
|
||||
shadowRadius: 16,
|
||||
},
|
||||
android: { elevation: 3 },
|
||||
});
|
||||
|
||||
const CARD_SHADOW_DARK = Platform.select({
|
||||
ios: {
|
||||
shadowColor: "#000",
|
||||
shadowOffset: { width: 0, height: 2 },
|
||||
shadowOpacity: 0.18,
|
||||
shadowRadius: 8,
|
||||
},
|
||||
android: { elevation: 4 },
|
||||
});
|
||||
|
||||
export { CARD_SHADOW, CARD_SHADOW_DARK };
|
||||
|
||||
export function ConnectionSheetButton(props: {
|
||||
readonly icon: React.ComponentProps<typeof SymbolView>["name"];
|
||||
readonly label: string;
|
||||
|
||||
@@ -189,10 +189,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
|
||||
}, []);
|
||||
|
||||
const reset = useCallback(() => {
|
||||
console.log("[new task flow] reset", {
|
||||
defaultEnvironmentId: projects[0]?.environmentId ?? null,
|
||||
projectCount: projects.length,
|
||||
});
|
||||
setSelectedEnvironmentId(projects[0]?.environmentId ?? "");
|
||||
setSelectedProjectKey(null);
|
||||
setSelectedModelKey(null);
|
||||
@@ -216,9 +212,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("[new task flow] initializing environment", {
|
||||
environmentId: projects[0]!.environmentId,
|
||||
});
|
||||
setSelectedEnvironmentId(projects[0]!.environmentId);
|
||||
}, [projects, selectedEnvironmentId]);
|
||||
|
||||
@@ -470,24 +463,6 @@ export function NewTaskFlowProvider(props: React.PropsWithChildren) {
|
||||
],
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("[new task flow] state", {
|
||||
availableBranchCount: availableBranches.length,
|
||||
environmentCount: environments.length,
|
||||
logicalProjectCount: logicalProjects.length,
|
||||
selectedEnvironmentId,
|
||||
selectedProjectKey,
|
||||
selectedProjectTitle: selectedProject?.title ?? null,
|
||||
});
|
||||
}, [
|
||||
availableBranches.length,
|
||||
environments.length,
|
||||
logicalProjects.length,
|
||||
selectedEnvironmentId,
|
||||
selectedProject?.title,
|
||||
selectedProjectKey,
|
||||
]);
|
||||
|
||||
return <NewTaskFlowContext.Provider value={value}>{props.children}</NewTaskFlowContext.Provider>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user