mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
add tier matrix to branding page
This commit is contained in:
committed by
Owen Schwartz
parent
fa0c5c623f
commit
c33f782eaf
@@ -147,7 +147,7 @@ export default function AuthPageBrandingForm({
|
|||||||
const isValid = await form.trigger();
|
const isValid = await form.trigger();
|
||||||
const brandingData = form.getValues();
|
const brandingData = form.getValues();
|
||||||
|
|
||||||
if (!isValid || !isPaidUser) return;
|
if (!isValid || !isPaidUser(tierMatrix.loginPageBranding)) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const updateRes = await api.put(
|
const updateRes = await api.put(
|
||||||
@@ -178,8 +178,6 @@ export default function AuthPageBrandingForm({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function deleteBranding() {
|
async function deleteBranding() {
|
||||||
if (!isPaidUser) return;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const updateRes = await api.delete(
|
const updateRes = await api.delete(
|
||||||
`/org/${orgId}/login-page-branding`
|
`/org/${orgId}/login-page-branding`
|
||||||
@@ -439,7 +437,7 @@ export default function AuthPageBrandingForm({
|
|||||||
disabled={
|
disabled={
|
||||||
isUpdatingBranding ||
|
isUpdatingBranding ||
|
||||||
isDeletingBranding ||
|
isDeletingBranding ||
|
||||||
!isPaidUser
|
!isPaidUser(tierMatrix.loginPageBranding)
|
||||||
}
|
}
|
||||||
className="gap-1"
|
className="gap-1"
|
||||||
>
|
>
|
||||||
@@ -454,7 +452,7 @@ export default function AuthPageBrandingForm({
|
|||||||
disabled={
|
disabled={
|
||||||
isUpdatingBranding ||
|
isUpdatingBranding ||
|
||||||
isDeletingBranding ||
|
isDeletingBranding ||
|
||||||
!isPaidUser
|
!isPaidUser(tierMatrix.loginPageBranding)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{t("saveAuthPageBranding")}
|
{t("saveAuthPageBranding")}
|
||||||
|
|||||||
Reference in New Issue
Block a user