From fa540c046d126449f77e46edd379bbc84e02d05d Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 26 Jun 2021 00:00:54 +0800
Subject: ...

---
 FrontEnd/src/service-worker.tsx | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

(limited to 'FrontEnd/src/service-worker.tsx')

diff --git a/FrontEnd/src/service-worker.tsx b/FrontEnd/src/service-worker.tsx
index e40124fe..fb81650d 100644
--- a/FrontEnd/src/service-worker.tsx
+++ b/FrontEnd/src/service-worker.tsx
@@ -1,9 +1,10 @@
 import React from "react";
 import { useTranslation } from "react-i18next";
-import { Button } from "react-bootstrap";
 
 import { pushAlert } from "./services/alert";
 
+import Button from "./views/common/button/Button";
+
 if (import.meta.env.PROD && "serviceWorker" in navigator) {
   let isThisTriggerUpgrade = false;
 
@@ -37,12 +38,10 @@ if (import.meta.env.PROD && "serviceWorker" in navigator) {
             <>
               {t("serviceWorker.externalActivatedPrompt")}
               <Button
-                variant="outline-success"
-                size="sm"
+                text="serviceWorker.reloadNow"
+                color="success"
                 onClick={upgradeReload}
-              >
-                {t("serviceWorker.reloadNow")}
-              </Button>
+              />
             </>
           );
         };
@@ -83,9 +82,11 @@ if (import.meta.env.PROD && "serviceWorker" in navigator) {
         return (
           <>
             {t("serviceWorker.upgradePrompt")}
-            <Button variant="outline-success" size="sm" onClick={upgrade}>
-              {t("serviceWorker.upgradeNow")}
-            </Button>
+            <Button
+              text="serviceWorker.upgradeNow"
+              color="success"
+              onClick={upgrade}
+            />
           </>
         );
       };
-- 
cgit v1.2.3

