From bd30f8c308da5777497f3deb987610bc2743bab9 Mon Sep 17 00:00:00 2001 From: zhangke Date: Fri, 18 Nov 2022 17:50:49 +0800 Subject: [PATCH] feat: add success and error status in Status component 1. add 'pass' key in successKeys 2. add 'refuse' key in errorKeys Change-Id: I4e340785ef37c06b45342ac38ccdce560414623a --- src/components/Status/index.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Status/index.jsx b/src/components/Status/index.jsx index 98e4cc31..60937e16 100644 --- a/src/components/Status/index.jsx +++ b/src/components/Status/index.jsx @@ -33,6 +33,7 @@ const successKeys = [ 'complete', 'online', 'ready', + 'pass', ]; const successKeysContain = ['complete']; @@ -58,6 +59,7 @@ const errorKeys = [ 'power off', 'error', 'offline', + 'refuse', ]; const errorKeysContain = ['fail'];