From 3c03d99a16a581e7a6e7e64c44a8eaa94802f2bf Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Sat, 7 Dec 2024 17:37:30 +0900 Subject: [PATCH] chore: clean unused code --- src/popup.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/popup.tsx b/src/popup.tsx index 9786e53..102495c 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -32,7 +32,6 @@ function IndexPopup() { documentLink?: string; }>(null); const isShowErrorMessage = message?.type === MESSAGE_TYPE.ERROR; - const isShowSuccessMessage = message?.type === MESSAGE_TYPE.SUCCESS; const setErrorMessage = (message: string, documentLink?: string) => { setMessage({ type: MESSAGE_TYPE.ERROR, message, documentLink }); @@ -384,24 +383,6 @@ function IndexPopup() { )} - {isShowSuccessMessage && ( -
- - - - Success. Try again if no results found. -
- )} );