Skip to content

Commit

Permalink
premium exposure card by default
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Nov 21, 2024
1 parent b178509 commit 1519e22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { ClockIcon } from "../../../../../../../../../components/server/Icons";

export type DataBrokerRemovalMaintenanceProps = {
scanResult: OnerepScanResultRow;
isPremiumUser: boolean;
onMarkAsResolved?: () => void;
};

Expand All @@ -35,7 +34,7 @@ export const DataBrokerRemovalMaintenance = (
dataBrokerDataType="relatives"
label={l10n.getString("exposure-card-family-members")}
count={scanResult.relatives.length}
isPremiumUser={props.isPremiumUser}
isPremiumUser={true}
/>,
);
}
Expand All @@ -47,7 +46,7 @@ export const DataBrokerRemovalMaintenance = (
dataBrokerDataType="phones"
label={l10n.getString("exposure-card-phone-number")}
count={scanResult.phones.length}
isPremiumUser={props.isPremiumUser}
isPremiumUser={true}
/>,
);
}
Expand All @@ -59,7 +58,7 @@ export const DataBrokerRemovalMaintenance = (
dataBrokerDataType="emails"
label={l10n.getString("exposure-card-email")}
count={scanResult.emails.length}
isPremiumUser={props.isPremiumUser}
isPremiumUser={true}
/>,
);
}
Expand All @@ -71,7 +70,7 @@ export const DataBrokerRemovalMaintenance = (
dataBrokerDataType="addresses"
label={l10n.getString("exposure-card-address")}
count={scanResult.addresses.length}
isPremiumUser={props.isPremiumUser}
isPremiumUser={true}
/>,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { CONST_URL_SUMO_MANUAL_REMOVAL } from "../../../../../../../../../../con
import { useState } from "react";
import { BackArrow } from "../../../../../../../../../components/server/Icons";
import { LatestOnerepScanData } from "../../../../../../../../../../db/tables/onerep_scans";
import { hasPremium } from "../../../../../../../../../functions/universal/user";

export type Props = {
data: LatestOnerepScanData;
Expand Down Expand Up @@ -94,7 +93,6 @@ export const RemovalUnderMaintenanceView = (props: Props) => {
<div className={styles.exposureCardWrapper}>
<DataBrokerRemovalMaintenance
scanResult={firstScanResultNotResolved}
isPremiumUser={hasPremium(props.stepDeterminationData.user)}
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onMarkAsResolved={() => {
handleManualRemovalChange().catch((error) => {
Expand Down

0 comments on commit 1519e22

Please sign in to comment.