mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 08:59:22 +01:00
Use TRee component for Environment dialog (#288)
This commit is contained in:
@@ -5,14 +5,17 @@ import { ColorIndicator } from './ColorIndicator';
|
||||
export function EnvironmentColorIndicator({
|
||||
environment,
|
||||
clickToEdit,
|
||||
className,
|
||||
}: {
|
||||
environment: Environment | null;
|
||||
clickToEdit?: boolean;
|
||||
className?: string;
|
||||
}) {
|
||||
if (environment?.color == null) return null;
|
||||
|
||||
return (
|
||||
<ColorIndicator
|
||||
className={className}
|
||||
color={environment?.color ?? null}
|
||||
onClick={clickToEdit ? () => showColorPicker(environment) : undefined}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user