Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 577c470

Browse files
committed
fix(block): change name to ShareBlockAside
1 parent a11e49e commit 577c470

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

demo/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
ShareButtonIconOnly,
1212
ShareButtonOutline,
1313
ShareBlockStandard,
14-
ShareBlockPlusAside,
14+
ShareBlockAside,
1515
} from '../../src';
1616

1717
import FaTwitter from 'react-icons/lib/fa/twitter';
@@ -91,7 +91,7 @@ const App = props => {
9191
<ShareBlockStandard {...shareBlockProps} button={ShareButtonOutline} />
9292
</div>
9393
<div className="box">
94-
<ShareBlockPlusAside
94+
<ShareBlockAside
9595
{...shareBlockProps}
9696
button={ShareButtonRectangle}
9797
header="Share it"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export {
1717

1818
// block styles\
1919
export { default as ShareBlockStandard } from './styled/ShareBlockStandard';
20-
export { default as ShareBlockPlusAside } from './styled/ShareBlockPlusAside';
20+
export { default as ShareBlockAside } from './styled/ShareBlockAside';

src/styled/ShareBlockPlusAside.js renamed to src/styled/ShareBlockAside.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const dynamicStyles = state => css`
5858
}
5959
`;
6060

61-
class ShareBlockPlusAside extends React.Component {
61+
class ShareBlockAside extends React.Component {
6262
timeouts = {};
6363
observer;
6464
observerTargets = [];
@@ -164,19 +164,19 @@ class ShareBlockPlusAside extends React.Component {
164164
}
165165
}
166166

167-
ShareBlockPlusAside.propTypes = {
167+
ShareBlockAside.propTypes = {
168168
header: PropTypes.string,
169169
className: PropTypes.any,
170170
htmlAttributes: PropTypes.object,
171171
debounce: PropTypes.number,
172172
pageHeaderSelector: PropTypes.string,
173173
};
174174

175-
ShareBlockPlusAside.defaultProps = {
175+
ShareBlockAside.defaultProps = {
176176
className: '',
177177
header: '',
178178
htmlAttributes: {},
179179
debounce: 250,
180180
};
181181

182-
export default ShareBlockPlusAside;
182+
export default ShareBlockAside;

src/styled/__tests__/ShareBlockPlusAside.test.js renamed to src/styled/__tests__/ShareBlockAside.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render, cleanup } from 'react-testing-library';
22
import FaTwitter from 'react-icons/lib/fa/twitter';
33
import React from 'react';
44

5-
import ShareBlockPlusAside from '../ShareBlockPlusAside';
5+
import ShareBlockAside from '../ShareBlockAside';
66
import ShareButton from '../../ShareButton';
77

88
afterEach(cleanup);
@@ -28,7 +28,7 @@ describe('<ShareBlockPlusAside>', () => {
2828
const { getByTestId } = render(
2929
<div>
3030
<h1 className="header">Page header</h1>
31-
<ShareBlockPlusAside {...props} />
31+
<ShareBlockAside {...props} />
3232
</div>
3333
);
3434
const fixedButtons = getByTestId('rcs-fixed-buttons');
@@ -52,7 +52,7 @@ describe('<ShareBlockPlusAside>', () => {
5252
header: 'Share it',
5353
};
5454

55-
const { container } = render(<ShareBlockPlusAside {...props} />);
55+
const { container } = render(<ShareBlockAside {...props} />);
5656

5757
expect(container.firstChild).toMatchSnapshot();
5858
});

0 commit comments

Comments
 (0)