diff --git a/src/components/UserProfile/elements/EmptyContent.jsx b/src/components/UserProfile/elements/EmptyContent.jsx index a70f31a..3201247 100644 --- a/src/components/UserProfile/elements/EmptyContent.jsx +++ b/src/components/UserProfile/elements/EmptyContent.jsx @@ -1,19 +1,12 @@ import React from 'react'; import PropTypes from 'prop-types'; - +import { Button } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faPlus } from '@fortawesome/free-solid-svg-icons'; function EmptyContent({ children, onClick, showPlusIcon }) { const onKeyDown = (e) => { if (e.key === 'Enter') onClick(); }; - const commonProps = { - className: 'd-flex align-items-center p-3 bg-light rounded text-muted w-100', - style: { - cursor: onClick ? 'pointer' : null, - }, - }; - const interactiveProps = { onClick, onKeyDown, @@ -21,21 +14,19 @@ function EmptyContent({ children, onClick, showPlusIcon }) { tabIndex: 0, }; - let props; - - if (onClick) { - props = { - ...commonProps, - ...interactiveProps, - }; - } else { - props = commonProps; - } - return ( -