How to use the @times-components/author-profile/rnw.default function in @times-components/author-profile

To help you get started, we’ve selected a few @times-components/author-profile 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 / ssr / src / component / author-profile.js View on Github external
/* eslint-disable import/no-unresolved */

const React = require("react");
const { ApolloProvider } = require("react-apollo");
const { HelmetProvider } = require("react-helmet-async");
const { AuthorProfileProvider } = require("@times-components/provider/rnw");
const {
  ContextProviderWithDefaults
} = require("@times-components/context/rnw");
const { StickyProvider } = require("@times-components/sticky/rnw");
const AuthorProfile = require("@times-components/author-profile/rnw").default;

module.exports = (client, analyticsStream, data, helmetContext) => {
  const {
    authorSlug,
    debounceTimeMs,
    makeArticleUrl,
    makeTopicUrl,
    mapProfileToAdConfig,
    page,
    pageSize
  } = data;

  return React.createElement(
    StickyProvider,
    {},
    React.createElement(
github newsuk / times-components / packages / ssr / src / component / author-profile.js View on Github external
/* eslint-disable import/no-unresolved */

const React = require("react");
const { ApolloProvider } = require("react-apollo");
const { HelmetProvider } = require("react-helmet-async");
const { AuthorProfileProvider } = require("@times-components/provider/rnw");
const {
  ContextProviderWithDefaults
} = require("@times-components/context/rnw");
const AuthorProfile = require("@times-components/author-profile/rnw").default;

module.exports = (client, analyticsStream, data, helmetContext) => {
  const {
    authorSlug,
    debounceTimeMs,
    makeArticleUrl,
    makeTopicUrl,
    mapProfileToAdConfig,
    page,
    pageSize
  } = data;

  return React.createElement(
    HelmetProvider,
    { context: helmetContext },
    React.createElement(

@times-components/author-profile

Author profile information along with a list of articles they have written

BSD-3-Clause
Latest version published 8 days ago

Package Health Score

87 / 100
Full package analysis

Popular @times-components/author-profile functions