Skip to content

Commit ffcff67

Browse files
change import
1 parent 2a4e676 commit ffcff67

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

apps/studio/src/routes/editor/LayersPanel/BrandTab/ColorPanel/ColorNameInput.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface ColorNameInputProps {
1414
onBlur?: (value: string) => void;
1515
}
1616

17-
const ColorNameInput = ({
17+
export const ColorNameInput = ({
1818
initialName,
1919
onSubmit,
2020
onCancel,
@@ -46,7 +46,7 @@ const ColorNameInput = ({
4646
}
4747

4848
// Skip this check if we're editing the same name
49-
if (camelCase(value) === initialName) {
49+
if (camelCase(value) === camelCase(initialName)) {
5050
return null;
5151
}
5252

@@ -109,5 +109,3 @@ const ColorNameInput = ({
109109
</Tooltip>
110110
);
111111
};
112-
113-
export default ColorNameInput;

apps/studio/src/routes/editor/LayersPanel/BrandTab/ColorPanel/ColorPalletGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from '@onlook/
1414
import { Color, toNormalCase } from '@onlook/utility';
1515
import { useState } from 'react';
1616
import { ColorPopover } from './ColorPopover';
17-
import ColorNameInput from './ColorNameInput';
17+
import { ColorNameInput } from './ColorNameInput';
1818

1919
export interface ColorItem {
2020
name: string;

apps/studio/src/routes/editor/LayersPanel/BrandTab/ColorPanel/ColorPopover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '@onlook/ui/popover';
33
import { toNormalCase, type Color } from '@onlook/utility';
44
import { useEffect, useState } from 'react';
55
import ColorPickerContent from '../../../EditPanel/StylesTab/single/ColorInput/ColorPicker';
6-
import ColorNameInput from './ColorNameInput';
6+
import { ColorNameInput } from './ColorNameInput';
77

88
export const ColorPopover = ({
99
color,

apps/studio/src/routes/editor/LayersPanel/BrandTab/ColorPanel/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import type { Color } from '@onlook/utility';
77
import { observer } from 'mobx-react-lite';
88
import { useEffect, useState } from 'react';
99
import { BrandPalletGroup } from './ColorPalletGroup';
10-
import ColorNameInput from './ColorNameInput';
11-
import { camelCase } from 'lodash';
10+
import { ColorNameInput } from './ColorNameInput';
1211

1312
interface ColorPanelProps {
1413
onClose: () => void;

0 commit comments

Comments
 (0)