mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 00:49:42 -06:00
feat: allow remove branding of in app surveys (#2085)
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ export const getIsEnterpriseEdition = (): boolean => {
|
||||
|
||||
export const getRemoveInAppBrandingPermission = (team: TTeam): boolean => {
|
||||
if (IS_FORMBRICKS_CLOUD) return team.billing.features.inAppSurvey.status !== "inactive";
|
||||
else if (!IS_FORMBRICKS_CLOUD) return getIsEnterpriseEdition();
|
||||
else if (!IS_FORMBRICKS_CLOUD) return true;
|
||||
else return false;
|
||||
};
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ export default function SurveysList({
|
||||
{filteredSurveys.map((survey) => {
|
||||
return (
|
||||
<SurveyCard
|
||||
key={survey.id}
|
||||
survey={survey}
|
||||
environment={environment}
|
||||
otherEnvironment={otherEnvironment}
|
||||
@@ -84,6 +85,7 @@ export default function SurveysList({
|
||||
{filteredSurveys.map((survey) => {
|
||||
return (
|
||||
<SurveyCard
|
||||
key={survey.id}
|
||||
survey={survey}
|
||||
environment={environment}
|
||||
otherEnvironment={otherEnvironment}
|
||||
|
||||
Reference in New Issue
Block a user