Skip to content

Commit 8ede24a

Browse files
Removed workflow from app dropdwon selection (#11)
* Removed workflow from app dropdwon selection * Classes for dropdown
1 parent 2d97e18 commit 8ede24a

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

components/AppSelectionDropdown.tsx

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { AppSelectionDropdownProps } from '../types/dropdown';
77
import kernLogo from '../assets/kern-icon.png';
88
import refineryLogo from '../assets/refinery-icon.png';
99
import gatesLogo from '../assets/gates-icon.png';
10-
import workflowLogo from '../assets/workflow-icon.png';
1110

1211
export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps) {
1312
return (
@@ -16,7 +15,7 @@ export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps
1615
<Menu.Button>
1716
<Tooltip color="invert" content="Kern AI" placement="right">
1817
<div
19-
className={`cursor-pointer group flex items-center p-2 text-sm font-medium rounded-md border ${props.workflow ? 'border-gray-800 hover:bg-gray-700' : 'border-gray-200 hover:bg-gray-50'}`}
18+
className={`cursor-pointer group flex items-center p-2 text-sm font-medium rounded-md border border-gray-800 hover:bg-gray-700`}
2019
>
2120
<Image src={kernLogo} width="32" height="32" alt='Kern' />
2221
</div>
@@ -89,29 +88,6 @@ export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps
8988
)}
9089
</Menu.Item>
9190
) : null}
92-
93-
{props.workflow ? (
94-
<Menu.Item>
95-
{({ active }) => (
96-
<a
97-
href="/workflow/workflows"
98-
rel="noopener noreferrer"
99-
className={combineClassNames(
100-
active ? 'bg-gray-100 text-gray-900' : 'text-gray-700',
101-
'group flex items-center px-4 py-2 text-sm cursor-pointer font-mono'
102-
)}
103-
>
104-
<Image
105-
src={workflowLogo}
106-
width={21}
107-
height={21}
108-
alt="workflow"
109-
/>
110-
<span className='ml-2'>workflow</span>
111-
</a>
112-
)}
113-
</Menu.Item>
114-
) : null}
11591
</div>
11692
</Menu.Items>
11793
</Transition>

types/dropdown.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ export type AppSelectionDropdownProps = {
8989
cockpit?: boolean;
9090
refinery?: boolean;
9191
gates?: boolean;
92-
workflow?: boolean;
9392
};

0 commit comments

Comments
 (0)