style upgrades
This commit is contained in:
@@ -30,7 +30,7 @@ const StatsWithFilter = ({ id }: { id: string }) => {
|
||||
</Group>
|
||||
</Group>
|
||||
<Box style={{ opacity: isStale ? 0.6 : 1, transition: 'opacity 150ms' }}>
|
||||
<Suspense key={deferredViewType} fallback={<StatsSkeleton />}>
|
||||
<Suspense fallback={<StatsSkeleton />}>
|
||||
<StatsContent id={id} viewType={deferredViewType} />
|
||||
</Suspense>
|
||||
</Box>
|
||||
@@ -39,8 +39,8 @@ const StatsWithFilter = ({ id }: { id: string }) => {
|
||||
};
|
||||
|
||||
const StatsContent = ({ id, viewType }: { id: string; viewType: 'all' | 'mainline' | 'regional' }) => {
|
||||
const { data: stats, isLoading: statsLoading } = usePlayerStats(id, viewType);
|
||||
return <StatsOverview statsData={stats} isLoading={statsLoading} />;
|
||||
const { data: stats } = usePlayerStats(id, viewType);
|
||||
return <StatsOverview statsData={stats} />;
|
||||
};
|
||||
|
||||
const Profile = ({ id }: ProfileProps) => {
|
||||
|
||||
Reference in New Issue
Block a user