-
Notifications
You must be signed in to change notification settings - Fork 0
Bump react-app-rewired from 2.1.6 to 2.1.9 #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,22 +5,24 @@ import PropTypes from 'prop-types'; | |
|
|
||
| const { Content: AntContent } = Layout; | ||
|
|
||
| const Content = ({ children, matchedRoutes }) => ( | ||
| <AntContent style={{ margin: '0 16px' }}> | ||
| <Breadcrumb style={{ margin: '16px 16px 0px 16px' }}> | ||
| {matchedRoutes.map(({ route }, idx) => ( | ||
| <Breadcrumb.Item key={route.path}> | ||
| {idx === matchedRoutes.length - 1 ? ( | ||
| route.title | ||
| ) : ( | ||
| <Link to={route.path}>{route.title}</Link> | ||
| )} | ||
| </Breadcrumb.Item> | ||
| ))} | ||
| </Breadcrumb> | ||
| <div style={{ padding: 16 }}>{children}</div> | ||
| </AntContent> | ||
| ); | ||
| const Content = function ({ children, matchedRoutes }) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected unnamed function. |
||
| return ( | ||
| <AntContent style={{ margin: '0 16px' }}> | ||
| <Breadcrumb style={{ margin: '16px 16px 0px 16px' }}> | ||
| {matchedRoutes.map(({ route }, idx) => ( | ||
| <Breadcrumb.Item key={route.path}> | ||
| {idx === matchedRoutes.length - 1 ? ( | ||
| route.title | ||
| ) : ( | ||
| <Link to={route.path}>{route.title}</Link> | ||
| )} | ||
| </Breadcrumb.Item> | ||
| ))} | ||
| </Breadcrumb> | ||
| <div style={{ padding: 16 }}>{children}</div> | ||
| </AntContent> | ||
| ); | ||
| }; | ||
|
|
||
| Content.propTypes = { | ||
| children: PropTypes.oneOfType([ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,9 @@ import PropTypes from 'prop-types'; | |
|
|
||
| const { Footer: AntFooter } = Layout; | ||
|
|
||
| const Footer = ({ footer }) => ( | ||
| <AntFooter style={{ textAlign: 'center' }}>{footer}</AntFooter> | ||
| ); | ||
| const Footer = function ({ footer }) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected unnamed function. |
||
| return <AntFooter style={{ textAlign: 'center' }}>{footer}</AntFooter>; | ||
| }; | ||
|
|
||
| Footer.propTypes = { | ||
| footer: PropTypes.string.isRequired, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,23 +21,25 @@ const avatarMenu = ( | |
| </Menu> | ||
| ); | ||
|
|
||
| const Header = ({ isSiderCollapsed, onToggleSider }) => ( | ||
| <AntHeader style={{ background: '#fff', padding: 0 }}> | ||
| <LegacyIcon | ||
| className="trigger" | ||
| type={isSiderCollapsed ? 'menu-unfold' : 'menu-fold'} | ||
| onClick={onToggleSider} | ||
| /> | ||
| <Dropdown overlay={avatarMenu} trigger={['click']}> | ||
| <Avatar | ||
| size="large" | ||
| shape="square" | ||
| className="avatar" | ||
| icon={<UserOutlined />} | ||
| const Header = function ({ isSiderCollapsed, onToggleSider }) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unexpected unnamed function. |
||
| return ( | ||
| <AntHeader style={{ background: '#fff', padding: 0 }}> | ||
| <LegacyIcon | ||
| className="trigger" | ||
| type={isSiderCollapsed ? 'menu-unfold' : 'menu-fold'} | ||
| onClick={onToggleSider} | ||
| /> | ||
| </Dropdown> | ||
| </AntHeader> | ||
| ); | ||
| <Dropdown overlay={avatarMenu} trigger={['click']}> | ||
| <Avatar | ||
| size="large" | ||
| shape="square" | ||
| className="avatar" | ||
| icon={<UserOutlined />} | ||
| /> | ||
| </Dropdown> | ||
| </AntHeader> | ||
| ); | ||
| }; | ||
|
|
||
| Header.propTypes = { | ||
| isSiderCollapsed: PropTypes.bool.isRequired, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,8 @@ import { Statistic, Card, Row, Col, Avatar, Button, Calendar } from 'antd'; | |
|
|
||
| const { Meta } = Card; | ||
|
|
||
| export default () => ( | ||
| <> | ||
| export default function () { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Function |
||
| return ( | ||
| <Row gutter={16} style={{ marginBottom: 20 }}> | ||
| <Col span={4}> | ||
| <Card | ||
|
|
@@ -68,5 +68,5 @@ export default () => ( | |
| </Card> | ||
| </Col> | ||
| </Row> | ||
| </> | ||
| ); | ||
| ); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
·