Skip to content

Commit

Permalink
fix: toast => makeToast로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimeodml committed Nov 28, 2023
1 parent b60610c commit aa4e064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/text.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { atom, useAtom } from 'jotai';
import { toast } from 'react-toastify';
import { useState } from 'react';
import makeToast from 'utils/ts/makeToast';

export const searchFormAtom = atom({
text: '',
Expand All @@ -22,7 +22,7 @@ const useSearchForm = () => {
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (searchForm.text.trim().length === 0) {
toast('검색어를 입력해주세요.');
makeToast('warning', '검색어를 입력해주세요.');
return;
}

Expand Down

0 comments on commit aa4e064

Please sign in to comment.