🔇 Removing some frontend console noise
This commit is contained in:
committed by
ericlinagora
parent
90d4719e22
commit
be574fc39f
@@ -68,7 +68,7 @@ export const Button = (props: ButtonProps) => {
|
|||||||
props.className
|
props.className
|
||||||
}
|
}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
{..._.omit(props, 'loading', 'children', 'className')}
|
{..._.omit(props, 'loading', 'children', 'className', 'icon')}
|
||||||
>
|
>
|
||||||
{props.loading && (
|
{props.loading && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ class FeatureTogglesService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public setFeaturesFromCompanyPlan(plan: { features: { [key: string]: FeatureValueType } }): void {
|
public setFeaturesFromCompanyPlan(plan: { features: { [key: string]: FeatureValueType } }): void {
|
||||||
console.debug("Setting company features");
|
|
||||||
console.debug(plan);
|
|
||||||
for (const [featureName, defaultValue] of availableFeaturesWithDefaults) {
|
for (const [featureName, defaultValue] of availableFeaturesWithDefaults) {
|
||||||
this.setActiveFeatureName(
|
this.setActiveFeatureName(
|
||||||
featureName,
|
featureName,
|
||||||
@@ -72,9 +70,7 @@ class FeatureTogglesService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public isActiveFeatureName(featureName: FeatureNames) {
|
public isActiveFeatureName(featureName: FeatureNames) {
|
||||||
const b = this.activeFeatureNames.includes(featureName);
|
return this.activeFeatureNames.includes(featureName);
|
||||||
console.debug(`Feature ${featureName} is ${b}`);
|
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getFeatureValue<T>(featureName: FeatureNames): T {
|
public getFeatureValue<T>(featureName: FeatureNames): T {
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ export default memo(
|
|||||||
isMobile ? (
|
isMobile ? (
|
||||||
<DocumentRow {...commonProps} />
|
<DocumentRow {...commonProps} />
|
||||||
) : (
|
) : (
|
||||||
<Draggable id={index}>
|
<Draggable id={index} key={index}>
|
||||||
<DocumentRow {...commonProps} />
|
<DocumentRow {...commonProps} />
|
||||||
</Draggable>
|
</Draggable>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user