Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ export const View = (props: Props) => {
<PlusShutdownBanner
countryCode={props.countryCode}
shutdownState={props.shutdownState}
enabledFeatureFlags={props.enabledFeatureFlags}
/>
<CsatSurvey
user={props.user}
Expand Down
3 changes: 0 additions & 3 deletions src/app/components/client/PlusShutdownBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import { useL10n } from "../../hooks/l10n";
import { useLocalDismissal } from "../../hooks/useLocalDismissal";
import { useHasRenderedClientSide } from "../../hooks/useHasRenderedClientSide";
import { type ShutdownState } from "../../functions/server/getPlusShutdownState";
import { FeatureFlagName } from "../../../db/tables/featureFlags";

type Props = {
shutdownState: ShutdownState;
countryCode: string;
enabledFeatureFlags: FeatureFlagName[];
};

export const PlusShutdownBanner = (props: Props) => {
Expand All @@ -29,7 +27,6 @@ export const PlusShutdownBanner = (props: Props) => {

if (
!hasRenderedClientSide ||
!props.enabledFeatureFlags.includes("ShutdownBanner") ||
// Free users who haven't run a scan have no data that would be lost:
(!props.shutdownState.ranScan && !props.shutdownState.hasPremium) ||
props.shutdownState.currentMoment === "ye-olden-days" ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import { PlusShutdownBanner } from "../PlusShutdownBanner";
const meta: Meta<typeof PlusShutdownBanner> = {
title: "Design Systems/Molecules/Plus shutdown banner",
component: PlusShutdownBanner,
args: {
enabledFeatureFlags: ["ShutdownBanner"],
},
};
export default meta;
type Story = StoryObj<typeof PlusShutdownBanner>;
Expand Down
Loading