Skip to content

Commit

Permalink
fix: height issue for verificatio in myads, myprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Sep 17, 2024
1 parent d6e0ac4 commit 6485425
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/pages/my-ads/screens/MyAds/MyAds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ const MyAds = () => {
const { data } = usePoiPoaStatus();
const { isPoaVerified, isPoiVerified } = data || {};

if (!isPoaVerified || !isPoiVerified) return <Verification />;
if (!isPoaVerified || !isPoiVerified)
return (
<div className='overflow-y-auto h-[calc(100%-11rem)]'>
<Verification />;
</div>
);

return (
<div className='flex flex-col h-full'>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/my-profile/screens/MyProfile/MyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ const MyProfile = () => {
}

if (!isPoiVerified || !isPoaVerified) {
return <Verification />;
return (
<div className='overflow-y-auto h-[calc(100%-11rem)]'>
<Verification />
</div>
);
}

if (!isDesktop) {
Expand Down

0 comments on commit 6485425

Please sign in to comment.