spice up js-side logs from store and branch select

This commit is contained in:
AAGaming
2022-09-08 20:19:54 -04:00
parent 6dad3f81e8
commit 9d980618a7
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
import { SteamSpinner } from 'decky-frontend-lib';
import { FC, useEffect, useState } from 'react';
import Logger from '../../logger';
import { LegacyStorePlugin, StorePlugin, getLegacyPluginList, getPluginList } from '../../store';
import PluginCard from './PluginCard';
const logger = new Logger('FilePicker');
const StorePage: FC<{}> = () => {
const [data, setData] = useState<StorePlugin[] | null>(null);
const [legacyData, setLegacyData] = useState<LegacyStorePlugin[] | null>(null);
@@ -11,12 +14,12 @@ const StorePage: FC<{}> = () => {
useEffect(() => {
(async () => {
const res = await getPluginList();
console.log(res);
logger.log('got data!', res);
setData(res);
})();
(async () => {
const res = await getLegacyPluginList();
console.log(res);
logger.log('got legacy data!', res);
setLegacyData(res);
})();
}, []);