diff --git a/src/pages/support/qna/register-page.tsx b/src/pages/support/qna/register-page.tsx index 4c29c00..99cb70f 100644 --- a/src/pages/support/qna/register-page.tsx +++ b/src/pages/support/qna/register-page.tsx @@ -18,6 +18,7 @@ import { QnaSaveParams, QnaSaveResponse } from '@/entities/support/model/types'; import { checkGrant } from '@/shared/lib/check-grant'; import { useKeyboardAware } from '@/shared/lib/hooks/use-keyboard-aware'; import { snackBar } from '@/shared/lib'; +import { showAlert } from '@/widgets/show-alert'; export enum QnaRegisterPropsName { Mid = 'Mid', @@ -79,23 +80,7 @@ export const QnaRegisterPage = () => { setContents(value); } }; - const showAlert = (msg: string) => { - overlay.open(({ - isOpen, - close, - unmount - }) => { - return ( - - ); - }); - } + const checkEmail = (email: string) => { var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (email != '' && email != 'undefined' && re.test(email)) {