Skip to content

Commit

Permalink
Refactor(hooks): add useCountdown to barrel file and import it
Browse files Browse the repository at this point in the history
  • Loading branch information
ThulinaWickramasinghe committed Sep 12, 2024
1 parent 2c3cc24 commit 575ad0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/2024/src/components/common/layout/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Link } from 'react-router-dom';
import { twMerge } from 'tailwind-merge';
import { registrationLink } from '@/constants';
import { TIME_REGISTRATION_CLOSING } from '@/constants/dates';
import { useBreakpoint } from '@/hooks';
import useCountdown from '@/hooks/countdown';
import { useBreakpoint, useCountdown } from '@/hooks';
import { Bashaway, FOSS, Times } from '@/icons';
import { Button } from '..';

Expand Down
2 changes: 1 addition & 1 deletion apps/2024/src/components/landing/countdown/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Separator } from '@/components/common/separator/index';
import { TIME_REGISTRATION_CLOSING } from '@/constants/dates';
import useCountdown from '@/hooks/countdown';
import { useCountdown } from '@/hooks';
import TimeItem from './time-item';

const CountDown = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/2024/src/components/landing/hero.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BodyText, Button } from '@/components/common';
import { registrationLink } from '@/constants';
import { CURRENT_YEAR, TIME_REGISTRATION_CLOSING } from '@/constants/dates';
import useCountdown from '@/hooks/countdown';
import { useCountdown } from '@/hooks';
import { Bashaway } from '@/icons';
import { CountDown } from '.';

Expand Down
1 change: 1 addition & 0 deletions apps/2024/src/hooks/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { default as useBreakpoint } from './breakpoint';
export { default as useEffectOnce } from './effect-once';
export { default as useScroll } from './scroll';
export { default as useWindowDimension } from './window-dimension';
export { default as useCountdown } from './countdown';

0 comments on commit 575ad0b

Please sign in to comment.