File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11import { Heading } from "@instructure/ui-heading" ;
2+ import { IconInstructureLogoLine } from "@instructure/ui-icons" ;
23import { Link } from "@instructure/ui-link" ;
34import { View } from "@instructure/ui-view" ;
45import { InstructureBugColor } from "../assets/Logos" ;
@@ -8,18 +9,24 @@ interface BannerProps {
89}
910
1011const Banner = ( { href } : BannerProps ) : React . ReactElement => {
12+ const isTestRoute =
13+ typeof window !== "undefined" && window . location . hash === "#/test" ;
14+ const LogoComponent = isTestRoute
15+ ? InstructureBugColor
16+ : IconInstructureLogoLine ;
17+
1118 return (
1219 < View as = "div" borderRadius = "medium" overflowX = "hidden" overflowY = "hidden" >
1320 < View as = "div" className = "logoWrapper" padding = "medium" >
1421 { href ? (
1522 < Link href = { href } >
1623 < Heading as = "h1" level = "h1" >
17- < InstructureBugColor />
24+ < LogoComponent />
1825 </ Heading >
1926 </ Link >
2027 ) : (
21- < InstructureBugColor />
22- ) } { " " }
28+ < LogoComponent />
29+ ) }
2330 </ View >
2431 </ View >
2532 ) ;
You can’t perform that action at this time.
0 commit comments