Skip to content

Commit

Permalink
fixup! Remove HowItWorksPage feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Aug 1, 2024
1 parent eb4b144 commit d4a43f0
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ const DashboardWrapper = (props: DashboardWrapperProps) => {
session={mockedSession}
nonce=""
countryCode={props.countryCode}
howItWorksFlagEnabled
>
<DashboardEl
user={user}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ export const AutomaticRemoveViewStory: Story = {
name: "1d. Automatically resolve brokers",
render: () => {
return (
<Shell
l10n={getL10n()}
session={mockedSession}
nonce=""
countryCode="us"
howItWorksFlagEnabled
>
<Shell l10n={getL10n()} session={mockedSession} nonce="" countryCode="us">
<AutomaticRemoveView
data={{
countryCode: "us",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ export const ManualRemoveViewStory: Story = {
name: "1c. Manually resolve brokers",
render: () => {
return (
<Shell
l10n={getL10n()}
session={mockedSession}
nonce=""
countryCode="us"
howItWorksFlagEnabled
>
<Shell l10n={getL10n()} session={mockedSession} nonce="" countryCode="us">
<ManualRemoveView
scanData={mockedScanData}
breaches={mockedBreaches}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,7 @@ export const StartFreeScanViewStory: Story = {
name: "1a. Free scan",
render: () => {
return (
<Shell
l10n={getL10n()}
session={mockedSession}
nonce=""
countryCode="us"
howItWorksFlagEnabled
>
<Shell l10n={getL10n()} session={mockedSession} nonce="" countryCode="us">
<StartFreeScanView
data={{
countryCode: "us",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ const ViewWrapper = (props: ViewWrapperProps) => {
const l10n = getL10n();

return (
<Shell
l10n={l10n}
session={mockedSession}
nonce=""
countryCode="us"
howItWorksFlagEnabled
>
<Shell l10n={l10n} session={mockedSession} nonce="" countryCode="us">
<ViewDataBrokersView
data={{
latestScanData: scanData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,7 @@ const mockedSession = {

const WelcomeToPlusViewWrapper = (props: { brokerScanCount: number }) => {
return (
<Shell
l10n={l10n}
session={mockedSession}
nonce=""
countryCode="us"
howItWorksFlagEnabled
>
<Shell l10n={l10n} session={mockedSession} nonce="" countryCode="us">
<WelcomeToPlusView
data={{
countryCode: "us",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ const HighRiskBreachWrapper = (props: {
session={mockedSession}
nonce=""
countryCode={data.countryCode}
howItWorksFlagEnabled
>
<HighRiskBreachLayout
subscriberEmails={[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@ const LeakedPasswordsWrapper = (props: {
}

return (
<Shell
l10n={getL10n()}
session={mockedSession}
nonce=""
countryCode="nl"
howItWorksFlagEnabled
>
<Shell l10n={getL10n()} session={mockedSession} nonce="" countryCode="nl">
<LeakedPasswordsLayout
subscriberEmails={[]}
type={props.type}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@ const SecurityRecommendationsWrapper = (props: {
type: SecurityRecommendationTypes;
}) => {
return (
<Shell
l10n={getL10n()}
session={mockedSession}
nonce=""
countryCode="nl"
howItWorksFlagEnabled
>
<Shell l10n={getL10n()} session={mockedSession} nonce="" countryCode="nl">
<SecurityRecommendationsLayout
subscriberEmails={[]}
type={props.type}
Expand Down
6 changes: 1 addition & 5 deletions src/app/(proper_react)/(redesign)/(public)/PublicShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ export const PublicShell = (props: Props) => {
</nav>
</header>
<div className={styles.content}>{props.children}</div>
<Footer
l10n={props.l10n}
countryCode={props.countryCode}
howItWorksFlagEnabled
/>
<Footer l10n={props.l10n} countryCode={props.countryCode} />
</div>
);
};
4 changes: 1 addition & 3 deletions src/app/(proper_react)/(redesign)/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ export const Footer = ({
l10n,
session,
countryCode,
howItWorksFlagEnabled,
}: {
l10n: ExtendedReactLocalization;
session?: Session;
countryCode: string;
howItWorksFlagEnabled: boolean;
}) => {
return (
<footer className={styles.footer}>
Expand All @@ -47,7 +45,7 @@ export const Footer = ({
{l10n.getString("footer-nav-all-breaches")}
</TelemetryLink>
</li>
{countryCode === "us" && !session && howItWorksFlagEnabled && (
{countryCode === "us" && !session && (
<li>
<TelemetryLink
href="/how-it-works"
Expand Down
3 changes: 1 addition & 2 deletions src/app/(proper_react)/(redesign)/Shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const Shell = (props: Props) => {
{l10n.getString("main-nav-link-settings-label")}
</PageLink>
</li>
{props.countryCode === "us" && props.howItWorksFlagEnabled && (
{props.countryCode === "us" && (
<li key="how-it-works">
<PageLink
href="/how-it-works"
Expand Down Expand Up @@ -107,7 +107,6 @@ export const Shell = (props: Props) => {
l10n={props.l10n}
session={props.session}
countryCode={props.countryCode}
howItWorksFlagEnabled={props.howItWorksFlagEnabled}
/>
</div>
</div>
Expand Down

0 comments on commit d4a43f0

Please sign in to comment.