add env variable (#513)

This commit is contained in:
Philip Okugbe
2024-11-28 18:48:25 +00:00
committed by GitHub
parent 8349d8271c
commit d97baf5824
7 changed files with 23 additions and 6 deletions

View File

@ -3,7 +3,7 @@ import { ActionIcon, Card, Image, Modal, Text, useComputedColorScheme } from '@m
import { useRef, useState } from 'react';
import { uploadFile } from '@/features/page/services/page-service.ts';
import { useDisclosure } from '@mantine/hooks';
import { getFileUrl } from '@/lib/config.ts';
import { getDrawioUrl, getFileUrl } from '@/lib/config.ts';
import {
DrawIoEmbed,
DrawIoEmbedRef,
@ -87,6 +87,7 @@ export default function DrawioView(props: NodeViewProps) {
<DrawIoEmbed
ref={drawioRef}
xml={initialXML}
baseUrl={getDrawioUrl()}
urlParameters={{
ui: computedColorScheme === 'light' ? 'kennedy' : 'dark',
spin: true,