Skip to content

Commit

Permalink
refactor: remove unecessary spread props files Notifications/index.js…
Browse files Browse the repository at this point in the history
…x and Sidebar/index.jsx
  • Loading branch information
wrspada02 committed Sep 30, 2024
1 parent ad9aae9 commit 5dca7e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/components/Notifications/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import Message from './Message';
import PropTypes from 'prop-types';

const Notifications = ({ notifications, onRemove, ...props }) => (
<div className="Notifications" {...props}>
const Notifications = ({ notifications, onRemove }) => (
<div className="Notifications">
{notifications.map(notification => (
<Message
className="Notifications__Message"
Expand Down
10 changes: 2 additions & 8 deletions app/assets/javascripts/components/projects/SideBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import SideBarButton from './SideBarButton';
import PropTypes from 'prop-types';
import classname from 'classnames';

const SideBar = ({
reverse,
visibleColumns,
toggleColumn,
reverseColumns,
...props
}) => {
const SideBar = ({ reverse, visibleColumns, toggleColumn, reverseColumns }) => {
const buttons = useMemo(
() => [
{
Expand Down Expand Up @@ -45,7 +39,7 @@ const SideBar = ({
);

return (
<div className="SideBar" {...props}>
<div className="SideBar">
<ul>
{buttons.map(button => {
const iconStyle = classname(
Expand Down

0 comments on commit 5dca7e7

Please sign in to comment.