How to use the @ant-design/pro-layout.getPageTitle function in @ant-design/pro-layout

To help you get started, we’ve selected a few @ant-design/pro-layout 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 XiaoMi / thain / thain-fe / src / layouts / UserLayout.tsx View on Github external
const UserLayout: React.SFC = props => {
  const {
    route = {
      routes: [],
    },
  } = props;
  const { routes = [] } = route;
  const {
    children,
    location = {
      pathname: '',
    },
  } = props;
  const { breadcrumb } = getMenuData(routes);
  const title = getPageTitle({
    pathname: location.pathname,
    breadcrumb,
    formatMessage,
    ...props,
  });
  return (
    <>
      
        <title>{title}</title>
        
      

      <div>
        <div>
          
        </div></div>
github Jkanon / webmagician-ui / src / layouts / UserLayout.tsx View on Github external
const UserLayout: React.SFC = props =&gt; {
  const {
    route = {
      routes: [],
    },
  } = props;
  const { routes = [] } = route;
  const {
    children,
    location = {
      pathname: '',
    },
  } = props;
  const { breadcrumb } = getMenuData(routes);
  const title = getPageTitle({
    pathname: location.pathname,
    breadcrumb,
    formatMessage,
    ...props,
  });

  return (
    &lt;&gt;
      
        <title>{title}</title>
        
      
      <div>
        <div>
          
        </div></div>