How to use the @times-components/user-state.addUserStateKnobs function in @times-components/user-state

To help you get started, we’ve selected a few @times-components/user-state examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / storybook / src / showcase-to-storybook.js View on Github external
builder.add(child.name, () => {
      if (Platform.OS === "web") {
        addUserStateKnobs(child.defaultUserState);
      }

      return strictMode ? (
        {child.component(...args)}
      ) : (
        child.component(...args)
      );
    });
  }