번호
{filteredPlatforms.length - ((page - 1) * pageSize + index)} @@ -483,7 +486,7 @@ export function PlatformsPage({ session }: { session: AuthSession }) {{platform.name}
-{platform.type}
+{platform.type}
diff --git a/src/pages/platforms/PlatformsPage.tsx b/src/pages/platforms/PlatformsPage.tsx index 72219ed..585f306 100644 --- a/src/pages/platforms/PlatformsPage.tsx +++ b/src/pages/platforms/PlatformsPage.tsx @@ -121,6 +121,9 @@ export function PlatformsPage({ session }: { session: AuthSession }) { }); return keys; }, [platforms]); + const sortedAgents = useMemo(() => [...agents].sort((a, b) => + Number(isRegisteredAgent(a, registeredAgentKeys)) - Number(isRegisteredAgent(b, registeredAgentKeys)), + ), [agents, registeredAgentKeys]); const pagedPlatforms = useMemo(() => filteredPlatforms.slice((page - 1) * pageSize, page * pageSize), [filteredPlatforms, page, pageSize]); const summaryItems = [ { label: '전체 플랫폼', value: `${summary.totalPlatforms}대`, icon: Car, tone: 'bg-[#eff6ff] text-[#2563eb]' }, @@ -449,7 +452,7 @@ export function PlatformsPage({ session }: { session: AuthSession }) {
번호
{filteredPlatforms.length - ((page - 1) * pageSize + index)} @@ -483,7 +486,7 @@ export function PlatformsPage({ session }: { session: AuthSession }) {{platform.type}
+{platform.type}