diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-10-23 13:04:00 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-10-23 13:04:00 -0700 |
| commit | 4ad15568cd2802f9499bd3961c5fe24391745502 (patch) | |
| tree | c66db7a36e8ae219cfbe1b236d0168f28594e115 /frontend/src/components/store/Store.tsx | |
| parent | 58849b30024d816f374e11c5489fd5adbcd9a22d (diff) | |
| download | decky-loader-4ad15568cd2802f9499bd3961c5fe24391745502.tar.gz decky-loader-4ad15568cd2802f9499bd3961c5fe24391745502.zip | |
Merge drop-legacy to main.
Diffstat (limited to 'frontend/src/components/store/Store.tsx')
| -rw-r--r-- | frontend/src/components/store/Store.tsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/frontend/src/components/store/Store.tsx b/frontend/src/components/store/Store.tsx index cb6f34ad..2ffd8efb 100644 --- a/frontend/src/components/store/Store.tsx +++ b/frontend/src/components/store/Store.tsx @@ -2,14 +2,13 @@ import { SteamSpinner } from 'decky-frontend-lib'; import { FC, useEffect, useState } from 'react'; import Logger from '../../logger'; -import { LegacyStorePlugin, StorePlugin, getLegacyPluginList, getPluginList } from '../../store'; +import { StorePlugin, 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); useEffect(() => { (async () => { @@ -17,11 +16,6 @@ const StorePage: FC<{}> = () => { logger.log('got data!', res); setData(res); })(); - (async () => { - const res = await getLegacyPluginList(); - logger.log('got legacy data!', res); - setLegacyData(res); - })(); }, []); return ( @@ -49,11 +43,6 @@ const StorePage: FC<{}> = () => { {data.map((plugin: StorePlugin) => ( <PluginCard plugin={plugin} /> ))} - {!legacyData ? ( - <SteamSpinner /> - ) : ( - legacyData.map((plugin: LegacyStorePlugin) => <PluginCard plugin={plugin} />) - )} </div> )} </div> |
