@parallelworks/tandem-web 0.139.1 → 0.139.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/SettingsNav.js +6 -6
- package/package.json +1 -1
- package/routes/_workspace2.js +394 -394
|
@@ -5,8 +5,8 @@ import { useTranslations as _ } from "use-intl";
|
|
|
5
5
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
6
6
|
import { useQuery as x, useSuspenseQuery as S } from "@tanstack/react-query";
|
|
7
7
|
// src/components/SettingsNav.tsx
|
|
8
|
-
var C = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", w =
|
|
9
|
-
function
|
|
8
|
+
var C = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", w = "bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] hover:bg-[var(--theme-sidebar-active-bg,var(--theme-hover))] !text-[var(--theme-sidebar-active-text,var(--theme-app))] font-medium", T = { className: w };
|
|
9
|
+
function E() {
|
|
10
10
|
let { data: e } = S(n), r = _("settingsNav"), v = e?.mode === "platform", { data: y } = x(t);
|
|
11
11
|
return [
|
|
12
12
|
{
|
|
@@ -102,8 +102,8 @@ function T() {
|
|
|
102
102
|
}
|
|
103
103
|
];
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
let n = _("settingsNav"), i =
|
|
105
|
+
function D({ workspace: t }) {
|
|
106
|
+
let n = _("settingsNav"), i = E();
|
|
107
107
|
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b(e, {
|
|
108
108
|
to: "/$workspace/issues",
|
|
109
109
|
params: { workspace: t },
|
|
@@ -123,7 +123,7 @@ function E({ workspace: t }) {
|
|
|
123
123
|
to: n,
|
|
124
124
|
params: { workspace: t },
|
|
125
125
|
className: C,
|
|
126
|
-
activeProps:
|
|
126
|
+
activeProps: T,
|
|
127
127
|
activeOptions: { exact: !0 },
|
|
128
128
|
children: [
|
|
129
129
|
/* @__PURE__ */ y(i, { className: "size-4" }),
|
|
@@ -135,4 +135,4 @@ function E({ workspace: t }) {
|
|
|
135
135
|
}, n.label))
|
|
136
136
|
})] });
|
|
137
137
|
}
|
|
138
|
-
export {
|
|
138
|
+
export { D as SettingsNav, C as navItem, w as navOn, E as useSettingsPages };
|