mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
Set initial tab index to 0
This commit is contained in:
1 parent
cd79a1b5a4
commit
f47fdc6bb0
1 file changed
+2
-5
@@ -1,6 +1,4 @@
|
||||
import { useState } from "react";
|
||||
import { usePosthogFeatureFlag } from "~/hooks/usePosthogFeatureFlag";
|
||||
import { FeatureFlags } from "~/enums";
|
||||
import { useSignals } from "@preact/signals-react/runtime";
|
||||
import {
|
||||
dndSidePanelWidth,
|
||||
@@ -14,9 +12,8 @@ import { TabItem, tabList } from "./tabList";
|
||||
|
||||
export const SidePanel = () => {
|
||||
useSignals();
|
||||
const initialTabIdx = usePosthogFeatureFlag(FeatureFlags.SHOW_SETS_TAB)
|
||||
? 0
|
||||
: 0;
|
||||
|
||||
const initialTabIdx = 0;
|
||||
const [selectedTab, setSelectedTab] = useState<TabItem>(
|
||||
tabList[initialTabIdx],
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user