Enhance documentation, implement Twilio OTP delivery, and update payment gateway methods. Updated AGENTS.md and README.md for clarity on ExecPlans and architecture. Added Twilio as a dependency and implemented capture/refund methods in MoyasarGateway. Improved frontend routing with react-router-dom and added authentication context. Updated styles and localization files for better user experience.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { Link } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useAuth } from "../contexts/AuthContext";
|
||||
import ProtectedRoute from "../components/ProtectedRoute";
|
||||
|
||||
export default function ProfilePage() {
|
||||
const { t } = useTranslation();
|
||||
const { user } = useAuth();
|
||||
|
||||
const content = (
|
||||
<section className="profile-page">
|
||||
<h1>{t("profile.title")}</h1>
|
||||
{user && (
|
||||
<p className="profile-phone">
|
||||
{user.phone_number || user.email || t("profile.noContact")}
|
||||
</p>
|
||||
)}
|
||||
<Link to="/bookings" className="book-cta">
|
||||
{t("profile.myBookings")}
|
||||
</Link>
|
||||
</section>
|
||||
);
|
||||
|
||||
return <ProtectedRoute>{content}</ProtectedRoute>;
|
||||
}
|
||||
Reference in New Issue
Block a user