From db4bb13e8e96e61b7bffd76d8c5a08b509f072ec Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Thu, 31 Mar 2022 14:42:59 +0530 Subject: [PATCH] Add cross signin info card in device manage component Signed-off-by: Ajay Bura --- src/app/organisms/settings/DeviceManage.jsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/app/organisms/settings/DeviceManage.jsx b/src/app/organisms/settings/DeviceManage.jsx index f30397d3..9ffcb80c 100644 --- a/src/app/organisms/settings/DeviceManage.jsx +++ b/src/app/organisms/settings/DeviceManage.jsx @@ -9,18 +9,22 @@ import Text from '../../atoms/text/Text'; import Button from '../../atoms/button/Button'; import IconButton from '../../atoms/button/IconButton'; import { MenuHeader } from '../../atoms/context-menu/ContextMenu'; +import InfoCard from '../../atoms/card/InfoCard'; import Spinner from '../../atoms/spinner/Spinner'; import SettingTile from '../../molecules/setting-tile/SettingTile'; import PencilIC from '../../../../public/res/ic/outlined/pencil.svg'; import BinIC from '../../../../public/res/ic/outlined/bin.svg'; +import InfoIC from '../../../../public/res/ic/outlined/info.svg'; import { useStore } from '../../hooks/useStore'; import { useDeviceList } from '../../hooks/useDeviceList'; +import { useCrossSigninStatus } from '../../hooks/useCrossSigninStatus'; function DeviceManage() { const TRUNCATED_COUNT = 4; const mx = initMatrix.matrixClient; + const isCSEnabled = useCrossSigninStatus(); const deviceList = useDeviceList(); const [processing, setProcessing] = useState([]); const [truncated, setTruncated] = useState(true); @@ -149,6 +153,16 @@ function DeviceManage() {
Unverified sessions + {!isCSEnabled && ( +
+ +
+ )} { unverified.length > 0 ? unverified.map((device) => renderDevice(device, false))