Improve verification instructions (#1301)
authorZeroAurora <zeroaurora233@outlook.com>
Wed, 21 Jun 2023 00:00:43 +0000 (08:00 +0800)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 00:00:43 +0000 (10:00 +1000)
src/app/organisms/settings/DeviceManage.jsx

index 4825e238719d5e7ce58f923e52fdd917de5c8a51..74738ea8b477e0bdcea3d20454529511023e1bd3 100644 (file)
@@ -217,6 +217,26 @@ function DeviceManage() {
     <div className="device-manage">
       <div>
         <MenuHeader>Unverified sessions</MenuHeader>
+        {!isMeVerified && (
+          <div style={{ padding: 'var(--sp-extra-tight) var(--sp-normal)' }}>
+            <InfoCard
+              rounded
+              variant="primary"
+              iconSrc={InfoIC}
+              title="Verify this session either with your Security Key/Phrase here or by initiating emoji verification from a verified session."
+            />
+          </div>
+        )}
+        {isMeVerified && unverified.length > 0 && (
+          <div style={{ padding: 'var(--sp-extra-tight) var(--sp-normal)' }}>
+            <InfoCard
+              rounded
+              variant="surface"
+              iconSrc={InfoIC}
+              title="Verify other sessions by emoji verification or remove unfamiliar ones."
+            />
+          </div>
+        )}
         {!isCSEnabled && (
           <div style={{ padding: 'var(--sp-extra-tight) var(--sp-normal)' }}>
             <InfoCard