This commit is contained in:
Romulus21
2024-02-15 22:12:46 +01:00
parent bd53f3b9ad
commit b326f79f2d
4 changed files with 49 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import React, {FC, useEffect, useState} from "react"
import useAxiosTools from "../../hooks/AxiosTools";
import {toDo} from "../../utilities/types";
import {PlaySVG} from "../SVG";
const ToDoFinish: FC<ToDoFinishProps> = ({reload}) => {
@@ -35,10 +36,10 @@ const ToDoFinish: FC<ToDoFinishProps> = ({reload}) => {
}
return <div>
<button className="flex justify-between w-full bg-blue-700 px-2 py-1 rounded cursor-pointer"
<button className="flex justify-between items-center w-full bg-blue-700 px-2 py-1 rounded cursor-pointer"
onClick={handleShow}>
<h2 className="inline">Tâches terminées</h2>
<span>Show</span>
<span><PlaySVG className={`w-4 transition ${showTodos ? 'rotate-90' : 'rotate-180'}`} /></span>
</button>
{errorLabel()}