umi#IRouteComponentProps TypeScript Examples

The following examples show how to use umi#IRouteComponentProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.tsx    From bext with MIT License 6 votes vote down vote up
export default function Layout({
  children,
  location,
  route,
  history,
  match,
}: IRouteComponentProps) {
  return (
    <NotificationsProvider>
      <CommonProvider>
        <div className="flex flex-col h-screen">
          <Header />
          <div className="flex-1 overflow-auto flex flex-col">{children}</div>
        </div>
        <DeclareDialog />
        <div
          id={LAYER_HOST_ID}
          style={{ position: 'fixed', top: 0, zIndex: 1 }}
        />
      </CommonProvider>
    </NotificationsProvider>
  );
}