From 96a6e79405809f4d56e2543e9558e5995020cadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 27 Feb 2023 13:31:16 +0100 Subject: [PATCH] Add utils directory --- site/source/components/utils/colors.tsx | 2 +- site/source/entries/entry-iframe.ts | 2 +- site/source/{ => utils}/hexToHSL.ts | 0 site/source/{utils.ts => utils/index.ts} | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename site/source/{ => utils}/hexToHSL.ts (100%) rename site/source/{utils.ts => utils/index.ts} (100%) diff --git a/site/source/components/utils/colors.tsx b/site/source/components/utils/colors.tsx index 60680e426..d4e550a70 100644 --- a/site/source/components/utils/colors.tsx +++ b/site/source/components/utils/colors.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useRef, useState } from 'react' import { ThemeProvider } from 'styled-components' -import { hexToHSL } from '@/hexToHSL' +import { hexToHSL } from '@/utils/hexToHSL' import { useIsEmbedded } from './useIsEmbedded' diff --git a/site/source/entries/entry-iframe.ts b/site/source/entries/entry-iframe.ts index 5d4d0aba4..f3464fa66 100644 --- a/site/source/entries/entry-iframe.ts +++ b/site/source/entries/entry-iframe.ts @@ -9,9 +9,9 @@ * aboutir à des bugs liés à une config de bundling différentes. **/ -import { hexToHSL } from '../hexToHSL' // @ts-ignore ignore file not exist error import simulationData from '../public/simulation-data-title.json' +import { hexToHSL } from '../utils/hexToHSL' const script = document.currentScript if (!script) { diff --git a/site/source/hexToHSL.ts b/site/source/utils/hexToHSL.ts similarity index 100% rename from site/source/hexToHSL.ts rename to site/source/utils/hexToHSL.ts diff --git a/site/source/utils.ts b/site/source/utils/index.ts similarity index 100% rename from site/source/utils.ts rename to site/source/utils/index.ts