fix: modules mutation, updated dummy content (#165)

* fix: modules mutation, updated dummy content

* fix: 404 page

* feat: added plausible script

* feat: added plausible to doc
This commit is contained in:
Aaryan Khandelwal 2023-01-11 16:40:25 +05:30 committed by GitHub
parent 1b7fb358fc
commit 9737b80dcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 6724 additions and 51 deletions

View file

@ -4,13 +4,13 @@ import { useState } from "react";
import SingleStat from "components/project/cycles/stats-view/single-stat";
import ConfirmCycleDeletion from "components/project/cycles/confirm-cycle-deletion";
// types
import { ICycle, SelectSprintType } from "types";
import { ICycle, SelectCycleType } from "types";
import { CompletedCycleIcon, CurrentCycleIcon, UpcomingCycleIcon } from "ui/icons";
type TCycleStatsViewProps = {
cycles: ICycle[];
setCreateUpdateCycleModal: React.Dispatch<React.SetStateAction<boolean>>;
setSelectedCycle: React.Dispatch<React.SetStateAction<SelectSprintType>>;
setSelectedCycle: React.Dispatch<React.SetStateAction<SelectCycleType>>;
type: "current" | "upcoming" | "completed";
};
@ -21,7 +21,7 @@ const CycleStatsView: React.FC<TCycleStatsViewProps> = ({
type,
}) => {
const [cycleDeleteModal, setCycleDeleteModal] = useState(false);
const [selectedCycleForDelete, setSelectedCycleForDelete] = useState<SelectSprintType>();
const [selectedCycleForDelete, setSelectedCycleForDelete] = useState<SelectCycleType>();
const handleDeleteCycle = (cycle: ICycle) => {
setSelectedCycleForDelete({ ...cycle, actionType: "delete" });