Skip to content

Commit 2a40213

Browse files
refactor: move constants to utils
1 parent 81251f3 commit 2a40213

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/constants.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/pages/home/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as Styled from './Home.styled.ts';
22
import { useEventLoopAnimation } from '../../store/store.ts';
33
import { isMobile } from '../../utils/isMobile.ts';
44
import { useEffect } from 'react';
5-
import { EVENT_LOOP_ID } from '../../constants.ts';
5+
import { EVENT_LOOP_ID } from '../../utils/constants.ts';
66

77
export default function Home() {
88
const status = useEventLoopAnimation((state) => state.status);

src/pages/home/sections/EventLoop/EventLoop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import InfoIcon from '../../../../components/InfoIcon/InfoIcon.tsx';
88
import InfoModal from '../../../../components/Modal/Modal.tsx';
99
import useBoolean from '../../../../utils/useBoolean.tsx';
1010
import { BaseLayoutElement } from '../../Home.styled.ts';
11-
import { EVENT_LOOP_ID } from '../../../../constants.ts';
11+
import { EVENT_LOOP_ID } from '../../../../utils/constants.ts';
1212

1313
function EventLoop({ className }: { className?: string }) {
1414
const animation = useEventLoopAnimation((state) => state);

src/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
export const MIN_DESKTOP_WIDTH = 768;
2+
3+
export const EVENT_LOOP_ID = 'eventLoopId';

0 commit comments

Comments
 (0)