INNER CODE UNIT · JavaScript

handleCustomColors

ekzhang/setwithfriends · src/App.js:128

  const handleCustomColors = (custom) => {
    setCustomColors(JSON.stringify(custom));
  };

  return (
    <StyledEngineProvider injectFirst>
      <ThemeProvider
        theme={themeType === "light" ? customLightTheme : customDarkTheme}
      >
        <BrowserRouter>
          <CssBaseline />
          {!user ? (
            <LoadingPage />
          ) : user.banned && Date.now() < user.banned ? (
            <BannedPage time={user.banned} />
          ) : (
            <UserContext.Provider value={user}>
              <SettingsContext.Provider

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…