From d75bbb29e7f5c46f80f01192d2bf8a0d00310e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 18 Jun 2019 10:59:48 +0800 Subject: [PATCH] codestyle: fix #4511 change Layout name --- src/layouts/BasicLayout.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/layouts/BasicLayout.tsx b/src/layouts/BasicLayout.tsx index 0a755599..2ac74fcc 100644 --- a/src/layouts/BasicLayout.tsx +++ b/src/layouts/BasicLayout.tsx @@ -5,10 +5,9 @@ */ import { ConnectProps, ConnectState } from '@/models/connect'; -import { +import ProLayout, { MenuDataItem, - BasicLayout as ProLayoutComponents, - BasicLayoutProps as ProLayoutComponentsProps, + BasicLayoutProps as ProLayoutProps, Settings, } from '@ant-design/pro-layout'; import React, { useState } from 'react'; @@ -21,7 +20,7 @@ import { formatMessage } from 'umi-plugin-react/locale'; import { isAntDesignPro } from '@/utils/utils'; import logo from '../assets/logo.svg'; -export interface BasicLayoutProps extends ProLayoutComponentsProps, ConnectProps { +export interface BasicLayoutProps extends ProLayoutProps, ConnectProps { breadcrumbNameMap: { [path: string]: MenuDataItem; }; @@ -98,7 +97,7 @@ const BasicLayout: React.FC = props => { }); return ( - ( @@ -122,7 +121,7 @@ const BasicLayout: React.FC = props => { {...settings} > {children} - + ); }; -- GitLab