Skip to content

Commit

Permalink
Scope selector img
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bar committed Nov 12, 2024
1 parent 762ce80 commit bc01c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/VirtualLab/ScopeSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons';
import { scopeSelectorExpandedAtom, selectedSimTypeFamily, selectedTabFamily } from './state';
import { classNames } from '@/util/utils';
import { SimulationType } from '@/types/virtual-lab/lab';
import { basePath } from '@/config';
import Styles from './styles.module.css';

export function SectionTabs({
Expand Down Expand Up @@ -202,5 +203,5 @@ export function ScopeSelectorSmall({ atomKey }: { atomKey: string }) {
}

function imageUrl(img: string) {
return '/images/scales/' + img + '.jpg';
return `${basePath}/images/scales/` + img + '.jpg';
}

0 comments on commit bc01c5e

Please sign in to comment.