Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions components/AppSelectionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { AppSelectionDropdownProps } from '../types/dropdown';
import kernLogo from '../assets/kern-icon.png';
import refineryLogo from '../assets/refinery-icon.png';
import gatesLogo from '../assets/gates-icon.png';
import workflowLogo from '../assets/workflow-icon.png';

export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps) {
return (
Expand All @@ -16,7 +15,7 @@ export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps
<Menu.Button>
<Tooltip color="invert" content="Kern AI" placement="right">
<div
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'}`}
className={`cursor-pointer group flex items-center p-2 text-sm font-medium rounded-md border border-gray-800 hover:bg-gray-700`}
>
<Image src={kernLogo} width="32" height="32" alt='Kern' />
</div>
Expand Down Expand Up @@ -89,29 +88,6 @@ export default function PlatformWelcomeDropdown(props: AppSelectionDropdownProps
)}
</Menu.Item>
) : null}

{props.workflow ? (
<Menu.Item>
{({ active }) => (
<a
href="/workflow/workflows"
rel="noopener noreferrer"
className={combineClassNames(
active ? 'bg-gray-100 text-gray-900' : 'text-gray-700',
'group flex items-center px-4 py-2 text-sm cursor-pointer font-mono'
)}
>
<Image
src={workflowLogo}
width={21}
height={21}
alt="workflow"
/>
<span className='ml-2'>workflow</span>
</a>
)}
</Menu.Item>
) : null}
</div>
</Menu.Items>
</Transition>
Expand Down
1 change: 0 additions & 1 deletion types/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,4 @@ export type AppSelectionDropdownProps = {
cockpit?: boolean;
refinery?: boolean;
gates?: boolean;
workflow?: boolean;
};