Skip to content

Commit 1d8df60

Browse files
committed
fix: Platform icons we not retrieved on dashboard
1 parent bfbce3e commit 1d8df60

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

dashboard/src/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class ApiClient {
44
private baseUrl: string;
55

66
constructor() {
7-
// @ts-ignore
7+
// @ts-ignore using window.env for vite
88
this.baseUrl = window?.env?.VITE_OTA_API_URL || import.meta.env.VITE_OTA_API_URL;
99
if (!this.baseUrl) {
1010
throw new Error('Missing VITE_OTA_API_URL environment variable');

dashboard/src/pages/Updates/components/UpdatesTable/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
BreadcrumbSeparator,
1313
} from '@/components/ui/breadcrumb';
1414
import { Badge } from '@/components/ui/badge.tsx';
15+
import apple from '@/assets/apple.svg';
16+
import android from '@/assets/android.svg';
1517

1618
export const UpdatesTable = ({
1719
branch,
@@ -83,8 +85,8 @@ export const UpdatesTable = ({
8385
const isAndroid = value.row.original.platform === 'android';
8486
return (
8587
<div className="flex flex-row items-center gap-2">
86-
{isIos && <img src="@/assets/apple.svg" className="w-4" alt="apple" />}
87-
{isAndroid && <img src="@/assets/android.svg" className="w-4" alt="android" />}
88+
{isIos && <img src={apple} className="w-4" alt="apple" />}
89+
{isAndroid && <img src={android} className="w-4" alt="android" />}
8890
</div>
8991
);
9092
},

0 commit comments

Comments
 (0)