Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: settings in sidebar, better add project flow #584

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/584/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 1 changed file with 125 additions and 61 deletions.

x
0 of 1 viewed, 1 left
125 additions and 61 deletionsapps/web/src/components/Sidebar.tsxModified
View file
@@ -1,8 +1,11 @@
import {
+ ArrowLeftIcon,
ChevronRightIcon,
FolderIcon,
GitPullRequestIcon,
+ PlusIcon,
RocketIcon,
+ SettingsIcon,
SquarePenIcon,
TerminalIcon,
} from "lucide-react";
@@ -17,7 +20,7 @@
type ResolvedKeybindingsConfig,
} from "@t3tools/contracts";
import { useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
-import { useNavigate, useParams } from "@tanstack/react-router";
+import { useLocation, useNavigate, useParams } from "@tanstack/react-router";
import { useAppSettings } from "../appSettings";
import { isElectron } from "../env";
import { APP_STAGE_LABEL } from "../branding";
@@ -278,6 +281,7 @@
(store) => store.clearProjectDraftThreadById,
const navigate = useNavigate();
+ const isOnSettings = useLocation({ select: (loc) => loc.pathname === "/settings" });
const { settings: appSettings } = useAppSettings();
const routeThreadId = useParams({
strict: false,