diff --git a/bundles/framework/mydata/view/embedded/SnippetPopup.jsx b/bundles/framework/mydata/view/embedded/SnippetPopup.jsx index aa9c4ada6d..83a1b2b098 100644 --- a/bundles/framework/mydata/view/embedded/SnippetPopup.jsx +++ b/bundles/framework/mydata/view/embedded/SnippetPopup.jsx @@ -1,7 +1,6 @@ - import React, { useState } from 'react'; import PropTypes from 'prop-types'; -import { Message, Tooltip, CopyField } from 'oskari-ui'; +import { Message, CopyField } from 'oskari-ui'; import styled from 'styled-components'; import { SecondaryButton, ButtonContainer, CopyButton } from 'oskari-ui/components/buttons'; import { showPopup } from 'oskari-ui/components/window'; @@ -16,7 +15,7 @@ const Content = styled.div` margin: 12px 24px 24px; `; -const SnippetPopup = ({html, onClose}) => { +const SnippetPopup = ({ html, onClose }) => { const [highlighted, setHighlighted] = useState(false); const highlightUrl = () => { @@ -24,7 +23,7 @@ const SnippetPopup = ({html, onClose}) => { setTimeout(() => { setHighlighted(false); }, 1000); - } + }; return ( @@ -35,16 +34,17 @@ const SnippetPopup = ({html, onClose}) => { /> - }> - highlightUrl()} - /> - + highlightUrl()}/> ); }; +SnippetPopup.propTypes = { + html: PropTypes.string.isRequired, + onClose: PropTypes.func.isRequired +}; export const showSnippetPopup = (view, onClose) => { const title = ; @@ -68,9 +68,4 @@ export const showSnippetPopup = (view, onClose) => { ); return showPopup(title, content, onClose, POPUP_OPTIONS); -} - -showSnippetPopup.propTypes = { - view: PropTypes.object, - onClose: PropTypes.func.isRequired }; diff --git a/src/react/components/Pagination.jsx b/src/react/components/Pagination.jsx index 0a100c42ad..0aff3929bf 100644 --- a/src/react/components/Pagination.jsx +++ b/src/react/components/Pagination.jsx @@ -1,8 +1,9 @@ import React from 'react'; import { Pagination as AntPagination } from 'antd'; -export const Pagination = ({ children, ...other}) => ( - +// No tooltip localization default to showTitle false +export const Pagination = ({ children, showTitle = false, ...other}) => ( + { children } );