Skip to content

Commit 117e61f

Browse files
committed
set FxFiles tab as default
1 parent 2904f9c commit 117e61f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

pinning-webui/src/pages/Pins.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ export default function Pins() {
138138
const { user } = useAuth();
139139

140140
// Active tab state
141-
const [activeTab, setActiveTab] = useState<TabType>('myPins');
141+
const [activeTab, setActiveTab] = useState<TabType>('fxFiles');
142142

143143
// Track which tabs have been loaded (for lazy loading)
144-
const [loadedTabs, setLoadedTabs] = useState<Set<TabType>>(new Set(['myPins']));
144+
const [loadedTabs, setLoadedTabs] = useState<Set<TabType>>(new Set(['fxFiles']));
145145

146146
// My Pins state
147147
const [data, setData] = useState<PinsResponse | null>(null);
@@ -1211,6 +1211,15 @@ export default function Pins() {
12111211

12121212
// Tab definitions
12131213
const tabs: { id: TabType; label: string; icon: JSX.Element }[] = [
1214+
{
1215+
id: 'fxFiles',
1216+
label: t.pins.tabFxFiles || 'FxFiles',
1217+
icon: (
1218+
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1219+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
1220+
</svg>
1221+
),
1222+
},
12141223
{
12151224
id: 'myPins',
12161225
label: t.pins.tabMyPins || 'My Pins',
@@ -1247,15 +1256,6 @@ export default function Pins() {
12471256
</svg>
12481257
),
12491258
},
1250-
{
1251-
id: 'fxFiles',
1252-
label: t.pins.tabFxFiles || 'FxFiles',
1253-
icon: (
1254-
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1255-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" />
1256-
</svg>
1257-
),
1258-
},
12591259
];
12601260

12611261
// Render My Pins Tab Content

0 commit comments

Comments
 (0)