File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,16 @@ import {
9
9
moon ,
10
10
sun ,
11
11
} from '@amoutonbrady/solid-heroicons/outline' ;
12
+ import Dismiss from 'solid-dismiss' ;
12
13
13
14
import logo from '../assets/logo.svg?url' ;
14
15
import { processImport , Tab } from '../../src' ;
15
16
import { exportToCsb } from '../utils/exportToCsb' ;
16
17
import { exportToJSON } from '../utils/exportToJson' ;
17
18
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' ] ;
19
22
20
23
export const Header : Component < {
21
24
dark : boolean ;
@@ -67,7 +70,7 @@ export const Header: Component<{
67
70
} ;
68
71
69
72
const versions = createMemo ( ( ) => {
70
- const hardCoded = [ '0.26.5' , '1.0.0' ] ;
73
+ const hardCoded = [ '0.26.5' , '1.0.0' , SOLID_VERSION ] ;
71
74
72
75
return hardCoded . includes ( props . version ) ? hardCoded : [ props . version , ...hardCoded ] ;
73
76
} ) ;
You can’t perform that action at this time.
0 commit comments