Skip to content

Commit

Permalink
fix: fix minor bug (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbyOnTheMars authored Dec 31, 2021
1 parent 52072dd commit a074891
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ui/views/ChainManagement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ChainManagementList = () => {
)}
</div>
{savedChainsData.length === 0 && (
<div className="no-pinned-container">{t('No pinned Chains')}</div>
<div className="no-pinned-container">{t('No pinned chains')}</div>
)}
<div className="droppable flex flex-wrap">
{savedChainsData.length > 0 && (
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/Dashboard/components/BalanceView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const BalanceView = ({
return (
<div
className={clsx(
'assets flex cursor-pointer',
'assets flex',
startAnimate ? numberWrapperAnimation : ''
)}
>
Expand All @@ -104,7 +104,7 @@ const BalanceView = ({
)}
>
<div className={clsx('amount-number', !startAnimate && 'text-32')}>
<span onClick={onClick}>
<span onClick={onClick} className=" cursor-pointer">
${splitNumberByStep((balance || 0).toFixed(2))}
</span>
</div>
Expand Down
13 changes: 7 additions & 6 deletions src/ui/views/Dashboard/components/RecentConnections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default ({
const [connections, setConnections] = useState<(ConnectedSite | null)[]>(
new Array(12).fill(null)
);
const [localshowModal, setLocalShowModal] = useState(showModal);
const [currentConnect, setCurrentConnect] = useState<
ConnectedSite | null | undefined
>(null);
Expand All @@ -156,6 +157,7 @@ export default ({
const getCurrentSite = useCallback(async () => {
const current = await getCurrentConnectSite(wallet);
setCurrentConnect(current);
setLocalShowModal(false);
getConnectedSites();
}, []);

Expand Down Expand Up @@ -186,11 +188,10 @@ export default ({
return (
<div className={clsx('recent-connections', connectionAnimation)}>
{showDrawer && (
<img
src={IconDrawer}
className={clsx('bottom-drawer')}
onClick={hideAllList}
/>
<>
<div onClick={hideAllList} className="click-modal"></div>
<img src={IconDrawer} className={clsx('bottom-drawer')} />
</>
)}
<div className="mb-[17px] text-12 text-gray-content h-14 text-center">
{hoverSite}
Expand All @@ -211,7 +212,7 @@ export default ({
</div>
<CurrentConnection
site={currentConnect}
showModal={showModal}
showModal={localshowModal}
onChange={getCurrentSite}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@
}
}
}
.click-modal {
width: 400px;
height: 40px;
z-index: 10;
position: absolute;
left:0;
top:-40px;
cursor: pointer;
}
}

.connect-site-popover {
Expand Down
1 change: 1 addition & 0 deletions src/ui/views/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ const Dashboard = () => {
connection: ConnectedSite | null | undefined
) => {
setCurrentConnection(connection);
setShowChainModal(false);
};

const checkGnosisConnectChain = () => {
Expand Down

0 comments on commit a074891

Please sign in to comment.