Skip to content

refactor(site): expose time values in render functions as centralized, pure state #17587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
fix: get rid of UMD import warnings
  • Loading branch information
Parkreiner committed Apr 30, 2025
commit 8c5c49dbc445e4b84e681ab38d2caf2316f1edd0
4 changes: 3 additions & 1 deletion site/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* Storybook decorator function used to inject baseline data dependencies into
* our React components during testing.
*/
import React from "react";
import "../src/index.css";
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
import CssBaseline from "@mui/material/CssBaseline";
import {
ThemeProvider as MuiThemeProvider,
StyledEngineProvider,
// biome-ignore lint/nursery/noRestrictedImports: we extend the MUI theme
} from "@mui/material/styles";
import { DecoratorHelpers } from "@storybook/addon-themes";
import isChromatic from "chromatic/isChromatic";
Expand Down Expand Up @@ -109,6 +109,8 @@ function withHelmet(Story) {
}

const storyDate = new Date("March 15, 2022");

/** @type {Decorator} */
function withTimeSyncProvider(Story) {
return (
<TimeSyncProvider
Expand Down
Loading