diff --git a/client/src/components/cancel-week/CancelWeek.jsx b/client/src/components/cancel-week/CancelWeek.jsx
new file mode 100644
index 00000000..fed75bf3
--- /dev/null
+++ b/client/src/components/cancel-week/CancelWeek.jsx
@@ -0,0 +1,54 @@
+import { useState } from "react";
+import PageTitle from "../common/PageTitle";
+import CustomCheckbox from "../common/CustomCheckbox";
+import Button from "../common/Button";
+import "./CancelWeek.scss";
+import { useCancelWeekMutation } from "../../redux/slices/termApiSlice";
+import { toast } from "react-toastify";
+import { useNavigate } from "react-router-dom";
+
+export default function CancelWeek() {
+ const [understandCheckbox, setUnderstandCheckbox] = useState(false);
+
+ const [cancelWeek, { isLoading }] = useCancelWeekMutation();
+ const navigate = useNavigate();
+
+ const handleSubmit = async (e) => {
+ e.preventDefault();
+
+ try {
+ const res = await cancelWeek().unwrap();
+ if (res.status === 400 || res.status === 500)
+ throw new Error("Something went wrong while canceling the week");
+ toast.success("تم إلغاء الأسبوع بنجاح");
+ navigate("/dashboard");
+ } catch (err) {
+ console.log(err);
+ toast.error("حدث خطأ أثناء إلغاء الأسبوع");
+ toast.error(JSON.stringify(err));
+ }
+ };
+
+ return (
+
+ );
+}
diff --git a/client/src/components/cancel-week/CancelWeek.scss b/client/src/components/cancel-week/CancelWeek.scss
new file mode 100644
index 00000000..bdb0bb9e
--- /dev/null
+++ b/client/src/components/cancel-week/CancelWeek.scss
@@ -0,0 +1,11 @@
+.cancel-week {
+ direction: rtl;
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+
+ .Button {
+ width: 50%;
+ margin-inline: auto;
+ }
+}
diff --git a/client/src/components/captain-profile/CaptainProfile.jsx b/client/src/components/captain-profile/CaptainProfile.jsx
index 8cbf4309..8d301f23 100644
--- a/client/src/components/captain-profile/CaptainProfile.jsx
+++ b/client/src/components/captain-profile/CaptainProfile.jsx
@@ -41,11 +41,14 @@ export default function CaptainProfile() {
{userInfo.rSectorBaseName
? userInfo.rSectorBaseName + " " + userInfo.rSectorSuffixName
: "لا يوجد"}
+ {(userInfo.type === "unit" || userInfo.type == "general") && ""}
- {/* TODO: Add the route for The Button Later */}
-