Skip to content

Commit

Permalink
remove the pop-up window "ALPHA_TEST_REMINDER"
Browse files Browse the repository at this point in the history
  • Loading branch information
jing12345678910 committed Sep 9, 2024
1 parent 4b8bd6d commit 6f6c036
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iSunFA",
"version": "0.8.1+4",
"version": "0.8.1+5",
"private": false,
"scripts": {
"dev": "next dev",
Expand Down
31 changes: 16 additions & 15 deletions src/contexts/global_context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,21 +425,22 @@ export const GlobalProvider = ({ children }: IGlobalProvider) => {
}
} else {
eliminateToast();
if (router.pathname.includes(ISUNFA_ROUTE.LOGIN)) {
toastHandler({
id: ToastId.ALPHA_TEST_REMINDER,
type: ToastType.INFO,
closeable: true,
autoClose: false,
content: (
<div className="flex items-center justify-between">
<p className="font-barlow text-sm">{t('common:COMMON.ALPHA_TEST_REMINDER')}</p>
</div>
),
});
} else {
eliminateToast(ToastId.ALPHA_TEST_REMINDER);
}
// Info: (20240909 - Anna) 為了不顯示「Alpha 版本的資料只用於測試」這個彈窗,所以先註解掉,未來需要用到時再解開
// if (router.pathname.includes(ISUNFA_ROUTE.LOGIN)) {
// toastHandler({
// id: ToastId.ALPHA_TEST_REMINDER,
// type: ToastType.INFO,
// closeable: true,
// autoClose: false,
// content: (
// <div className="flex items-center justify-between">
// <p className="font-barlow text-sm">{t('common:COMMON.ALPHA_TEST_REMINDER')}</p>
// </div>
// ),
// });
// } else {
// eliminateToast(ToastId.ALPHA_TEST_REMINDER);
// }
}
}, [pathname, signedIn]);

Expand Down

0 comments on commit 6f6c036

Please sign in to comment.