From 5dca7e7c8afe9747a32bdc44d4b4788052cf681d Mon Sep 17 00:00:00 2001 From: William Spada Date: Mon, 30 Sep 2024 14:26:45 -0300 Subject: [PATCH] refactor: remove unecessary spread props files Notifications/index.jsx and Sidebar/index.jsx --- .../javascripts/components/Notifications/index.jsx | 4 ++-- .../javascripts/components/projects/SideBar/index.jsx | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/components/Notifications/index.jsx b/app/assets/javascripts/components/Notifications/index.jsx index 97dde28de..8ef535a00 100644 --- a/app/assets/javascripts/components/Notifications/index.jsx +++ b/app/assets/javascripts/components/Notifications/index.jsx @@ -2,8 +2,8 @@ import React from 'react'; import Message from './Message'; import PropTypes from 'prop-types'; -const Notifications = ({ notifications, onRemove, ...props }) => ( -
+const Notifications = ({ notifications, onRemove }) => ( +
{notifications.map(notification => ( { +const SideBar = ({ reverse, visibleColumns, toggleColumn, reverseColumns }) => { const buttons = useMemo( () => [ { @@ -45,7 +39,7 @@ const SideBar = ({ ); return ( -
+
    {buttons.map(button => { const iconStyle = classname(