Skip to content

Commit

Permalink
fixed breaking changes (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
lghiur authored May 23, 2024
1 parent 189bd1c commit fe2e9c6
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/c8df601cd07dcd5d5f41.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tyk-technologies/tyk-ui",
"version": "3.1.1",
"version": "3.1.2",
"description": "Tyk UI - ui reusable components",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/components/CopyToClipboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import toast from '../Toast';

function CopyToClipboard(props) {
const {
display, copy, children, onCopy,
display, copy, children, onCopy, message,
} = props;
const txtRef = createRef();
const handleClick = useCallback(() => {
Expand All @@ -25,7 +25,7 @@ function CopyToClipboard(props) {
return;
}
window.navigator.clipboard.writeText(copy);
toast.notify('copied', { theme: 'success' });
toast.notify(message || 'copied', { theme: 'success' });
}, [onCopy, txtRef]);

return (
Expand All @@ -43,6 +43,8 @@ function CopyToClipboard(props) {
}

CopyToClipboard.propTypes = {
/** Message to be displayed after text is copied */
message: PropTypes.string,
/** Callback function executed after text is copied */
onCopy: PropTypes.func,
/** Text to be copied */
Expand Down
8 changes: 4 additions & 4 deletions src/components/RevealPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ RevealPanel.propTypes = {
gutterClassName: PropTypes.string,
wrapperClassName: PropTypes.string,
};
const TempRevealPanel = forwardRef(RevealPanel);
TempRevealPanel.HeaderLeft = RevealPanelHeaderLeft;
TempRevealPanel.HeaderRight = RevealPanelHeaderRight;

RevealPanel.HeaderLeft = RevealPanelHeaderLeft;
RevealPanel.HeaderRight = RevealPanelHeaderRight;

export default forwardRef(RevealPanel);
export default TempRevealPanel;
2 changes: 1 addition & 1 deletion src/components/Table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Table({
setState((prevState) => ({
...prevState,
pagination: {
...state.pagination,
...prevState.pagination,
current: data + 1,
},
}));
Expand Down

0 comments on commit fe2e9c6

Please sign in to comment.