Skip to content

Commit d66e7ce

Browse files
committed
✨ Add the default version to the list in the header
1 parent bffc70d commit d66e7ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

playground/components/header.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ import {
99
moon,
1010
sun,
1111
} from '@amoutonbrady/solid-heroicons/outline';
12+
import Dismiss from 'solid-dismiss';
1213

1314
import logo from '../assets/logo.svg?url';
1415
import { processImport, Tab } from '../../src';
1516
import { exportToCsb } from '../utils/exportToCsb';
1617
import { exportToJSON } from '../utils/exportToJson';
1718
import { ZoomDropdown } from './zoomDropdown';
18-
import Dismiss from 'solid-dismiss';
19+
import pkg from '../../package.json';
20+
21+
const SOLID_VERSION = pkg.dependencies['solid-js'];
1922

2023
export const Header: Component<{
2124
dark: boolean;
@@ -67,7 +70,7 @@ export const Header: Component<{
6770
};
6871

6972
const versions = createMemo(() => {
70-
const hardCoded = ['0.26.5', '1.0.0'];
73+
const hardCoded = ['0.26.5', '1.0.0', SOLID_VERSION];
7174

7275
return hardCoded.includes(props.version) ? hardCoded : [props.version, ...hardCoded];
7376
});

0 commit comments

Comments
 (0)