The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix disabledTooltip types for workspace access checks
Kiran Ke67a7f80e811
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsxindex 33cdef2ccf..0f088553ee 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page-client.tsx@@ -277,14 +277,14 @@ export function WorkspaceMembersClient() {onClick={() => setShowInviteWorkspaceUserModal(true)}className="h-9 w-fit"shortcut="M"- disabledTooltip={inviteNewTeammatesError}+ disabledTooltip={inviteNewTeammatesError || undefined}/><Buttonicon={<LinkIcon className="h-4 w-4 text-neutral-800" />}variant="secondary"onClick={() => setShowInviteCodeModal(true)}className="h-9 space-x-0"- disabledTooltip={generateInviteLinksError}+ disabledTooltip={generateInviteLinksError || undefined}/></div>}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/page-client.tsxindex a0f659d0cc..cb948aae93 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/page-client.tsx@@ -37,7 +37,7 @@ export default function WorkspaceSettingsClient() {maxLength: 32,}}helpText="Max 32 characters."- disabledTooltip={error}+ disabledTooltip={error || undefined}handleSubmit={(updateData) =>fetch(`/api/workspaces/${id}`, {method: "PATCH",@@ -70,7 +70,7 @@ export default function WorkspaceSettingsClient() {maxLength: 48,}}helpText="Only lowercase letters, numbers, and dashes. Max 48 characters."- disabledTooltip={error}+ disabledTooltip={error || undefined}handleSubmit={(data) =>fetch(`/api/workspaces/${id}`, {method: "PATCH",diff --git a/apps/web/lib/client-access-check.ts b/apps/web/lib/client-access-check.tsindex de5edf7a5e..396371415a 100644--- a/apps/web/lib/client-access-check.ts+++ b/apps/web/lib/client-access-check.ts@@ -38,7 +38,7 @@ export const clientAccessCheck = ({if (allowed) {return {allowed,- error: undefined,+ error: false,};}diff --git a/apps/web/ui/workspaces/delete-workspace.tsx b/apps/web/ui/workspaces/delete-workspace.tsxindex 619e484492..a3fdcd0fb3 100644--- a/apps/web/ui/workspaces/delete-workspace.tsx+++ b/apps/web/ui/workspaces/delete-workspace.tsx@@ -49,7 +49,7 @@ export default function DeleteWorkspace() {text="Delete Workspace"variant="danger"onClick={() => setShowDeleteWorkspaceModal(true)}- disabledTooltip={error}+ disabledTooltip={error || undefined}/></div></div>diff --git a/apps/web/ui/workspaces/upload-logo.tsx b/apps/web/ui/workspaces/upload-logo.tsxindex 1c8058451f..8b27ba11e2 100644--- a/apps/web/ui/workspaces/upload-logo.tsx+++ b/apps/web/ui/workspaces/upload-logo.tsx@@ -86,7 +86,7 @@ export default function UploadLogo() {text="Save changes"loading={uploading}disabled={!image || logo === image || Boolean(error)}- disabledTooltip={error}+ disabledTooltip={error || undefined}/></div></div>