fix: gated button add your first contact

(cherry picked from commit 90fd9bc4cc5b8270c44a8c8d1cbc864f38eb6e97)
This commit is contained in:
Chris Eldon 2026-07-01 23:11:57 +07:00
parent 54b8652852
commit c5f2544ff9

View File

@ -570,7 +570,9 @@ export default function ContactsPage() {
: 'No contacts yet.'}
</p>
{!hasActiveFilters && (
<Button
<GatedButton
canAct={canEdit}
gateReason="add or import contacts"
variant="outline"
size="sm"
onClick={openAddForm}
@ -578,7 +580,7 @@ export default function ContactsPage() {
>
<Plus className="size-3.5" />
Add your first contact
</Button>
</GatedButton>
)}
</div>
</TableCell>