Skip to content

Commit

Permalink
added api for every single pages
Browse files Browse the repository at this point in the history
  • Loading branch information
joblessgod committed Jul 25, 2024
1 parent 028de2b commit fce9304
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/pages/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useLoginMutation } from "../../redux/slices/api";
import { handleError } from "../../utils/handleError";
import { useDispatch } from "react-redux";
import { updateCurrentUser, updateLoggedIn } from "../../redux/slices/appSlice";
import Footer from "../../components/Footer";

const formSchema = z.object({
userId: z.string(),
Expand Down Expand Up @@ -160,6 +161,7 @@ export default function Signup() {
</div>
</div>
</section>
<Footer/>
</>
);
}
2 changes: 2 additions & 0 deletions src/pages/Auth/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useSignupMutation } from "../../redux/slices/api";
import { toast } from "sonner";
import { updateCurrentUser, updateLoggedIn } from "../../redux/slices/appSlice";
import { useDispatch } from "react-redux";
import Footer from "../../components/Footer";

const formSchema = z.object({
username: z.string().min(3),
Expand Down Expand Up @@ -176,6 +177,7 @@ export default function Login() {
</div>
</div>
</section>
<Footer />
</>
);
}
2 changes: 2 additions & 0 deletions src/pages/MyProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Footer from "../components/Footer";
import Header from "../components/Header";

export default function MyProfile() {
return (
<>
<Header />
<div className="bg-slate-950 h-[calc(100dvh-60px)] ">My Profile</div>
<Footer />
</>
);
}
2 changes: 2 additions & 0 deletions src/pages/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Link } from "react-router-dom";
import Header from "../components/Header";
import Footer from "../components/Footer";

export default function NotFound() {
return (
Expand Down Expand Up @@ -29,6 +30,7 @@ export default function NotFound() {
</a>
</button>
</main>
<Footer/>
</>
);
}
2 changes: 2 additions & 0 deletions src/pages/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Header from "../components/Header";
import Footer from "../components/Footer";

export default function Settings() {
return (
<>
<Header />
<div className="bg-slate-950 h-[calc(100dvh-60px)] ">Settings</div>
<Footer />
</>
);
}
4 changes: 3 additions & 1 deletion src/pages/Support.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useNavigate } from "react-router-dom";
import Header from "../components/Header";
import { toast } from "sonner";
import Footer from "../components/Footer";

export default function Support() {
const navigate = useNavigate();
Expand Down Expand Up @@ -59,7 +60,7 @@ export default function Support() {
</button>
</form>
</div>

<div className="z-10 relative lg:col-span-2">
<img
src="https://readymadeui.com/images/analtsis.webp"
Expand All @@ -69,6 +70,7 @@ export default function Support() {
</div>
</div>
</div>
<Footer />
</>
);
}

0 comments on commit fce9304

Please sign in to comment.