From dd223225753a47a099d414bc02dd25d65ca0cac2 Mon Sep 17 00:00:00 2001 From: crew852 <65230973+crew852@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:35:18 +0900 Subject: [PATCH] fix: apply changed util func name, fix export default to named export --- app/components/KakaoLoginButton/KakaoLoginButton.tsx | 2 +- app/utils/random.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/components/KakaoLoginButton/KakaoLoginButton.tsx b/app/components/KakaoLoginButton/KakaoLoginButton.tsx index 783d2fc..eded8da 100644 --- a/app/components/KakaoLoginButton/KakaoLoginButton.tsx +++ b/app/components/KakaoLoginButton/KakaoLoginButton.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import getUUID from '@/utils/getUUID'; +import { getUUID } from '@/utils/random'; const clientId = 'f5aa2f20e42d783654b8e8c01bfc6312'; //redirectUri는 등록된 redirectUri중에 임의로 사용했습니다. diff --git a/app/utils/random.ts b/app/utils/random.ts index 9655343..edffe9a 100644 --- a/app/utils/random.ts +++ b/app/utils/random.ts @@ -1,6 +1,4 @@ import { v4 as uuidv4 } from 'uuid'; //이용자의 uuid를 받아옵니다. -const getUUID = () => uuidv4(); - -export default getUUID; +export const getUUID = () => uuidv4();