Skip to content

Commit

Permalink
fix: longhorn developers icon not rendering in prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
doprz committed Oct 5, 2024
1 parent 505243e commit 39c59ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/components/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import RefreshIcon from '~icons/material-symbols/refresh';
import DevMode from './DevMode';
import Preview from './Preview';

const LDIconURL = new URL('/src/assets/LD-icon.png', import.meta.url).href;

/**
* Custom hook for enabling developer mode.
*
Expand Down Expand Up @@ -184,8 +186,7 @@ export default function Settings(): JSX.Element {
<Divider size='2rem' orientation='vertical' />
<h1 className='pl-4 text-xl text-ut-burntorange font-bold'>UTRP SETTINGS & CREDITS PAGE</h1>
</div>
{/* TODO: this icon doesn't show up in prod builds */}
<img src='/src/assets/LD-icon.png' alt='LD Icon' className='h-10 w-10 rounded-lg' />
<img src={LDIconURL} alt='LD Icon' className='h-10 w-10 rounded-lg' />
</header>

<div className='flex'>
Expand Down

0 comments on commit 39c59ff

Please sign in to comment.