Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions src/components/common/loading-animation.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
'use client';

import React from 'react';
import Lottie from 'lottie-react';
import dynamic from 'next/dynamic';
import clsx from 'clsx';
import Loading from '@/lottie/loading.json';
import BlackLoading from '@/lottie/black-loading.json';
import clsx from 'clsx';

const Lottie = dynamic(() => import('lottie-react'), { ssr: false });

type Props = {
className?: string;
option?: 'default' | 'black';
};

const LoadingAnimation = ({ className, option = 'default' }: Props) => {
return (
<div className='flex h-full w-full items-center justify-center'>
{option === 'black' ? (
<Lottie animationData={BlackLoading} loop={Infinity} autoplay={true} className={clsx('w-full', className)} />
) : (
<Lottie animationData={Loading} loop={Infinity} autoplay={true} className={clsx('w-full', className)} />
)}
</div>
);
};
const LoadingAnimation = ({ className, option = 'default' }: Props) => (
<div className='flex h-full w-full items-center justify-center'>
<Lottie
animationData={option === 'black' ? BlackLoading : Loading}
loop
autoplay
className={clsx('w-full', className)}
/>
</div>
);

export default LoadingAnimation;
4 changes: 3 additions & 1 deletion src/components/common/lottie-animation.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use client';

import React, { forwardRef, useImperativeHandle, useRef, useEffect } from 'react';
import Lottie, { LottieRefCurrentProps } from 'lottie-react';
import { LottieRefCurrentProps } from 'lottie-react';
import clsx from 'clsx';
import dynamic from 'next/dynamic';
const Lottie = dynamic(() => import('lottie-react'), { ssr: false });

// λΆ€λͺ¨κ°€ μ‚¬μš©ν•  λ©”μ„œλ“œ νƒ€μž…μ— 속도 μ œμ–΄ 및 ν™œμ„±ν™” μž¬μƒ μΆ”κ°€
export type LottieHandle = {
Expand Down
1 change: 0 additions & 1 deletion src/types/interview.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/types/job-posting.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/types/user.ts

This file was deleted.