diff --git a/src/components/atoms/ColorDisplay/ColorDisplay.tsx b/src/components/atoms/ColorDisplay/ColorDisplay.tsx index 16151512c..6d103db26 100644 --- a/src/components/atoms/ColorDisplay/ColorDisplay.tsx +++ b/src/components/atoms/ColorDisplay/ColorDisplay.tsx @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import Color from 'color'; import Typography from '../Typography/Typography'; -import copyToClipboard from '../../utils/functions/copyToClipBoard'; +import copyToClipboard from '../../utils/functions/copyToClipBoard/copyToClipBoard'; import CheckerBoardPattern from '../CheckerBoardPattern/CheckerBoardPattern'; import { ColorDisplayContainer, Wrapper, Content, WrapperSVG } from './ColorDisplay.style'; import ClipBoardIcon from '../../icons/SVGClipBoardIcon/SVGClipBoardIcon'; diff --git a/src/components/utils/functions/clampLayer.ts b/src/components/utils/functions/clampLayer/clampLayer.ts similarity index 83% rename from src/components/utils/functions/clampLayer.ts rename to src/components/utils/functions/clampLayer/clampLayer.ts index f4091faae..2ea31e692 100644 --- a/src/components/utils/functions/clampLayer.ts +++ b/src/components/utils/functions/clampLayer/clampLayer.ts @@ -1,6 +1,6 @@ import { TLayer } from '@/interface/TLayer'; -export function clampLayer(layer: number) { +export default function clampLayer(layer: number) { // limit layer to minimal 0 if (layer < 0) { return 0 as TLayer; diff --git a/src/components/utils/functions/clampLayer/index.ts b/src/components/utils/functions/clampLayer/index.ts new file mode 100644 index 000000000..23b81a0c4 --- /dev/null +++ b/src/components/utils/functions/clampLayer/index.ts @@ -0,0 +1 @@ +export { default as clampLayer } from './clampLayer'; diff --git a/src/components/utils/functions/copyToClipBoard.ts b/src/components/utils/functions/copyToClipBoard/copyToClipBoard.ts similarity index 100% rename from src/components/utils/functions/copyToClipBoard.ts rename to src/components/utils/functions/copyToClipBoard/copyToClipBoard.ts diff --git a/src/components/utils/functions/copyToClipBoard/index.ts b/src/components/utils/functions/copyToClipBoard/index.ts new file mode 100644 index 000000000..e029cc67d --- /dev/null +++ b/src/components/utils/functions/copyToClipBoard/index.ts @@ -0,0 +1 @@ +export { default as copyToClipBoard } from './copyToClipBoard';