diff --git a/src/custom/components/NotificationBanner/index.tsx b/src/custom/components/NotificationBanner/index.tsx index ba1c6f3ef..d16ef9484 100644 --- a/src/custom/components/NotificationBanner/index.tsx +++ b/src/custom/components/NotificationBanner/index.tsx @@ -10,6 +10,7 @@ export interface BannerProps { children: React.ReactNode level: Level isVisible: boolean + canClose?: boolean } const Banner = styled.div>` @@ -44,7 +45,7 @@ export default function NotificationBanner(props: BannerProps) { return ( {props.children} - setIsActive(false)} /> + {props.canClose && setIsActive(false)} />} ) } diff --git a/src/custom/pages/Profile/index.tsx b/src/custom/pages/Profile/index.tsx index 1b40e14ea..817f5edcc 100644 --- a/src/custom/pages/Profile/index.tsx +++ b/src/custom/pages/Profile/index.tsx @@ -31,8 +31,8 @@ export default function Profile() { return ( <> {error && ( - - There was an error loading your profile data. Please try again. + + There was an error loading your profile data. Please try again later. )}