Skip to content

Commit

Permalink
remove unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Nov 8, 2022
1 parent 2f5832d commit 9f91328
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/pages/Tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@ import TaskList from '../organisms/TaskList';
import { useCloseWarning } from '../../lib/useCloseWarning';
import { Box } from '@mui/material';

interface TasksProps {
lastToday: Date | undefined;
}

const Tasks = ({ lastToday }: TasksProps): JSX.Element => {
const Tasks = (): JSX.Element => {
const [newTask, setNewTask] = useState<TaskType>();

useCloseWarning();

return (
<Box sx={{ pb: 12 }}>
<TaskList lastToday={lastToday} newTask={newTask} />
<TaskList newTask={newTask} />
<PlusFab onSave={setNewTask} />
</Box>
);
Expand Down

1 comment on commit 9f91328

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.