diff --git a/ui/banner/BlankRasaBanner.tsx b/ui/banner/BlankRasaBanner.tsx index ce02751f96..5b85ca4034 100644 --- a/ui/banner/BlankRasaBanner.tsx +++ b/ui/banner/BlankRasaBanner.tsx @@ -10,7 +10,11 @@ import { } from '@chakra-ui/react'; import React from 'react'; -const BlankRasaBanner = ({ orientation }: {orientation: string}) => { +type IsCardProp = { + isCard?: boolean; +}; + +const BlankRasaBanner = ({ isCard = false }: IsCardProp) => { const bgColor = useColorModeValue('light', '#171717'); const textColor = useColorModeValue('#616B74', 'gray.200'); const btnColor = useColorModeValue('white', '#171717'); @@ -20,36 +24,32 @@ const BlankRasaBanner = ({ orientation }: {orientation: string}) => { ); const imgInvertFilter = useColorModeValue('invert(0)', 'invert(1)'); - const landscape = orientation === 'landscape'; - const potrait = orientation === 'potrait'; - const landscapeOrientationCondition = landscape && !potrait; - return ( blank-rasa-logo-loading... - + Blank Rasa @@ -71,7 +71,7 @@ const BlankRasaBanner = ({ orientation }: {orientation: string}) => { colorScheme="green.500" p={ 4 } mt={ 3 } - width={ [ '100%', landscapeOrientationCondition ? '270px' : '100%' ] } + width={ [ '100%', !isCard ? '270px' : '100%' ] } fontSize="sm" variant="outline" borderWidth="1.5px" diff --git a/ui/pages/Home.tsx b/ui/pages/Home.tsx index 22ccb684d3..f16c9b10f9 100644 --- a/ui/pages/Home.tsx +++ b/ui/pages/Home.tsx @@ -43,7 +43,7 @@ const Home = () => { - + diff --git a/ui/shared/Page/PageTitle.tsx b/ui/shared/Page/PageTitle.tsx index 78f220ec68..5b43f6db04 100644 --- a/ui/shared/Page/PageTitle.tsx +++ b/ui/shared/Page/PageTitle.tsx @@ -93,7 +93,7 @@ const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoa return ( <> - +