(id: string)
| 26 | const [selectedCategory, setSelectedCategory] = useState<string[]>(Track.categories.map((item) => item.category.id)); |
| 27 | |
| 28 | function handleEdit(id: string) { |
| 29 | if (isEditing) { |
| 30 | updateTrack(id, { id, title, description, image, hidden, selectedCategory, cohort, trackType, canvaLink }); |
| 31 | return setIsEditing(false); |
| 32 | } |
| 33 | setIsEditing(true); |
| 34 | } |
| 35 | |
| 36 | function handleFilterButton(category: string) { |
| 37 | if (selectedCategory.includes(category)) { |
no test coverage detected