|
|
@ -150,23 +150,18 @@ export default React.memo(function SidebarAd() {
|
|
|
|
{() => {
|
|
|
|
{() => {
|
|
|
|
const path = window.location.pathname;
|
|
|
|
const path = window.location.pathname;
|
|
|
|
// Ugly hack to show conditional sidebar content.
|
|
|
|
// Ugly hack to show conditional sidebar content.
|
|
|
|
if (path.startsWith('/resume')) {
|
|
|
|
|
|
|
|
return <TopResume className={backgroundClass} key={Math.random()} />;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
if (path.includes('negotiation') || path.includes('compensation')) {
|
|
|
|
path.includes('negotiation') ||
|
|
|
|
|
|
|
|
path.startsWith('/understanding-compensation')
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
return <Moonchaser className={backgroundClass} key={Math.random()} />;
|
|
|
|
return <Moonchaser className={backgroundClass} key={Math.random()} />;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
|
|
|
|
path.includes('resume') ||
|
|
|
|
path.includes('coding') ||
|
|
|
|
path.includes('coding') ||
|
|
|
|
path.startsWith('/best-practice-questions') ||
|
|
|
|
path.includes('best-practice-questions') ||
|
|
|
|
path.startsWith('/cheatsheet') ||
|
|
|
|
path.includes('cheatsheet') ||
|
|
|
|
path.startsWith('/mock-interviews') ||
|
|
|
|
path.includes('mock-interviews') ||
|
|
|
|
path.startsWith('/algorithms')
|
|
|
|
path.includes('algorithms')
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
return Math.random() > 0.5 ? (
|
|
|
|
return Math.random() > 0.5 ? (
|
|
|
|
<AlgoMonster className={backgroundClass} key={Math.random()} />
|
|
|
|
<AlgoMonster className={backgroundClass} key={Math.random()} />
|
|
|
|