Skip to content

Commit 2b52c4b

Browse files
committed
update logo for test route
1 parent b211151 commit 2b52c4b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/components/Banner.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Heading } from "@instructure/ui-heading";
2+
import { IconInstructureLogoLine } from "@instructure/ui-icons";
23
import { Link } from "@instructure/ui-link";
34
import { View } from "@instructure/ui-view";
45
import { InstructureBugColor } from "../assets/Logos";
@@ -8,18 +9,24 @@ interface BannerProps {
89
}
910

1011
const 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
);

0 commit comments

Comments
 (0)