Add side drawer to display feature guide

This commit is contained in:
Nilay Majorwar
2022-02-22 02:17:55 +05:30
parent 1d8413cc7d
commit 9dcfad555d
10 changed files with 274 additions and 14 deletions

22
ui/providers/index.tsx Normal file
View File

@@ -0,0 +1,22 @@
import { DarkModeProvider } from "./dark-mode-provider";
import { ErrorBoundaryProvider } from "./error-boundary-provider";
import { FeaturesGuideProvider } from "./features-guide-provider";
type Props = {
omitFeatureGuide?: boolean;
children: React.ReactNode;
};
export const Providers = (props: Props) => {
return (
<DarkModeProvider>
<ErrorBoundaryProvider>
{props.omitFeatureGuide ? (
props.children
) : (
<FeaturesGuideProvider>{props.children}</FeaturesGuideProvider>
)}
</ErrorBoundaryProvider>
</DarkModeProvider>
);
};