From 7289f02c81d3896b619a5c60a5f5a0488492747e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 22 Jun 2020 14:00:34 +0200 Subject: [PATCH] Align staking status icons (#3027) * Align staking status icons * No content --- .../src/Overview/Address/Status.tsx | 22 +++++++++++++------ packages/react-components/src/Badge.tsx | 9 ++++++-- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/packages/page-staking/src/Overview/Address/Status.tsx b/packages/page-staking/src/Overview/Address/Status.tsx index 22aeced541..cda11c3cb7 100644 --- a/packages/page-staking/src/Overview/Address/Status.tsx +++ b/packages/page-staking/src/Overview/Address/Status.tsx @@ -17,13 +17,21 @@ interface Props { function Status ({ isElected, numNominators, onlineCount, onlineMessage }: Props): React.ReactElement { return ( - {isElected && ( - } - isInline - /> - )} + {isElected + ? ( + } + isInline + /> + ) + : ( + + ) + } {(!!onlineCount || onlineMessage) && ( * { line-height: 22px; overflow: hidden;