@@ -3,13 +3,13 @@ import { Menu, Transition } from '@headlessui/react'
3
3
import { Tooltip } from '@nextui-org/react'
4
4
import Image from 'next/image' ;
5
5
import { combineClassNames } from '../../javascript-functions/general' ;
6
- import { LayoutDropdownProps } from '../types/dropdown' ;
6
+ import { AppSelectionDropdownProps } from '../types/dropdown' ;
7
7
import kernLogo from '../assets/kern-icon.png' ;
8
8
import refineryLogo from '../assets/refinery-icon.png' ;
9
9
import gatesLogo from '../assets/gates-icon.png' ;
10
10
import workflowLogo from '../assets/workflow-icon.png' ;
11
11
12
- export default function LayoutDropdown ( props : LayoutDropdownProps ) {
12
+ export default function PlatformWelcomeDropdown ( props : AppSelectionDropdownProps ) {
13
13
return (
14
14
< Menu as = "div" className = "relative inline-block text-left" >
15
15
< div >
@@ -35,7 +35,7 @@ export default function LayoutDropdown(props: LayoutDropdownProps) {
35
35
>
36
36
< Menu . Items className = "fixed bottom-[74px] left-20 z-50 w-40 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" >
37
37
< div className = "py-1" >
38
- { props . visibility [ 0 ] ? (
38
+ { props . cockpit ? (
39
39
< Menu . Item >
40
40
{ ( { active } ) => (
41
41
< a
@@ -53,7 +53,7 @@ export default function LayoutDropdown(props: LayoutDropdownProps) {
53
53
</ Menu . Item >
54
54
) : null }
55
55
56
- { props . visibility [ 1 ] ? (
56
+ { props . refinery ? (
57
57
< Menu . Item >
58
58
{ ( { active } ) => (
59
59
< a
@@ -72,7 +72,7 @@ export default function LayoutDropdown(props: LayoutDropdownProps) {
72
72
) : null }
73
73
74
74
75
- { props . visibility [ 2 ] ? (
75
+ { props . gates ? (
76
76
< Menu . Item >
77
77
{ ( { active } ) => (
78
78
< a
@@ -90,7 +90,7 @@ export default function LayoutDropdown(props: LayoutDropdownProps) {
90
90
</ Menu . Item >
91
91
) : null }
92
92
93
- { props . visibility [ 3 ] ? (
93
+ { props . workflow ? (
94
94
< Menu . Item >
95
95
{ ( { active } ) => (
96
96
< a
0 commit comments