Skip to content

Commit

Permalink
Merge pull request #266 from mehul-m-prajapati/admin_btn
Browse files Browse the repository at this point in the history
Use isGranted for button show-hide
  • Loading branch information
tejasnasre authored Nov 7, 2024
2 parents b2ee02c + e4e5f24 commit 6208159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export default function Page() {
</div>
</div>

{isSuperAdmin && (
{isSuperAdmin?.isGranted && (
<Button variant="outline" className="w-full" onClick={() => {
router.push("/admin");
}}>Super Admin
Expand Down

0 comments on commit 6208159

Please sign in to comment.