[docs] Add OSS Skills Marketplace (#6752)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { useEffect } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
interface Props {
|
||||
@@ -8,6 +8,13 @@ interface Props {
|
||||
const SHOW_BANNER = false;
|
||||
|
||||
export default function Root({ children }: Props): JSX.Element {
|
||||
// Initialize gtag as no-op if not present (prevents errors in development)
|
||||
useEffect(() => {
|
||||
if (typeof window !== 'undefined' && !window.gtag) {
|
||||
(window as any).gtag = function() {};
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
{SHOW_BANNER && (
|
||||
|
||||
Reference in New Issue
Block a user