fix: remove platform

This commit is contained in:
DecDuck
2025-09-06 19:23:02 +10:00
parent bfd5c8e761
commit d84c70a05f
8 changed files with 42 additions and 35 deletions

View File

@ -1,8 +0,0 @@
import { IconsLinuxLogo, IconsWindowsLogo, IconsMacLogo } from "#components";
import { Platform } from "~/prisma/client/enums";
export const PLATFORM_ICONS = {
[Platform.Linux]: IconsLinuxLogo,
[Platform.Windows]: IconsWindowsLogo,
[Platform.macOS]: IconsMacLogo,
};

View File

@ -1,4 +1,4 @@
import { Platform } from "~/prisma/client/enums";
import { HardwarePlatform } from "~/prisma/client/enums";
export type PlatformRenderable = {
name: string;
@ -10,7 +10,7 @@ export function renderPlatforms(
userPlatforms: { platformName: string; id: string; iconSvg: string }[],
): PlatformRenderable[] {
return [
...Object.values(Platform).map((e) => ({
...Object.values(HardwarePlatform).map((e) => ({
name: e,
param: e,
platformIcon: { key: e },