From 7a5ee037d7ca5b7a483d0d2e3d36b610a84f0551 Mon Sep 17 00:00:00 2001 From: Angela Zheng <92692008+AngelaZQ1@users.noreply.github.com> Date: Thu, 11 Apr 2024 18:49:33 -0400 Subject: [PATCH] renderDropdownWarning (#737) --- packages/frontend/components/Sidebar/Sidebar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/frontend/components/Sidebar/Sidebar.tsx b/packages/frontend/components/Sidebar/Sidebar.tsx index 0c157cd64..e3e519cc9 100644 --- a/packages/frontend/components/Sidebar/Sidebar.tsx +++ b/packages/frontend/components/Sidebar/Sidebar.tsx @@ -258,6 +258,7 @@ export const NoMajorSidebar: React.FC = ({ title="No Major" creditsTaken={creditsTaken} renderCoopBlock + renderDropdownWarning={false} > @@ -290,6 +291,7 @@ interface SidebarContainerProps { creditsToTake?: number; renderCoopBlock?: boolean; renderBetaMajorBlock?: boolean; + renderDropdownWarning?: boolean; } export const NoPlanSidebar: React.FC = () => { @@ -303,6 +305,7 @@ const SidebarContainer: React.FC> = ({ creditsToTake, renderCoopBlock, renderBetaMajorBlock, + renderDropdownWarning = true, children, }) => { return ( @@ -348,7 +351,7 @@ const SidebarContainer: React.FC> = ({ )} - + {renderDropdownWarning && } {creditsTaken !== undefined && (