aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/components/Footer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/components/Footer.tsx')
-rw-r--r--jb-ui/src/components/Footer.tsx77
1 files changed, 43 insertions, 34 deletions
diff --git a/jb-ui/src/components/Footer.tsx b/jb-ui/src/components/Footer.tsx
index 00c0101..e65255f 100644
--- a/jb-ui/src/components/Footer.tsx
+++ b/jb-ui/src/components/Footer.tsx
@@ -1,41 +1,50 @@
-import { useAppSelector } from "@/hooks";
+import { useGetMeQuery } from "@/models/authAPI";
const Footer = () => {
- const bpuid = useAppSelector(state => state.app.bpuid)
- const assignment_id = useAppSelector(state => state.app.assignment_id)
+ const { data: user } = useGetMeQuery();
- return (
- <div className="grid gap-1 grid-cols-1
+ return (
+ <div
+ className="grid gap-1 grid-cols-1
md:grid-cols-3
- text-xs">
- <div>
- <p>help: <a
- href={`mailto:support@jamesbillings67.com?subject=AMT Support Request: (${(bpuid ?? '-')}) ${(assignment_id ?? '–')}`}>
- support@jamesbillings67.com
- </a>
- </p>
- </div>
+ text-xs"
+ >
+ <div>
+ <p>
+ help:{" "}
+ <a
+ href={`mailto:support@jamesbillings67.com?subject=AMT Support Request: (${user?.product_user_id ?? "-"})`}
+ >
+ support@jamesbillings67.com
+ </a>
+ </p>
+ </div>
- <div>
- <p>made with <span className="text-rose-500">♥</span> by <a
- className="hover:cursor-pointer hover:text-pink"
- href="https://instagram.com/x0xMaximus"
- target="_blank">Max Nanis</a>
- </p>
- </div>
+ <div>
+ <p>
+ made with <span className="text-rose-500">♥</span> by{" "}
+ <a
+ className="hover:cursor-pointer hover:text-pink"
+ href="https://instagram.com/x0xMaximus"
+ target="_blank"
+ >
+ Max Nanis
+ </a>
+ </p>
+ </div>
- <div>
- <p>
- <a href="https://git.generalresearch.com/panels/amt-jb/"
- target="_blank">
- open source
- </a>
- </p>
- </div>
+ <div>
+ <p>
+ <a
+ href="https://git.generalresearch.com/panels/amt-jb/"
+ target="_blank"
+ >
+ open source
+ </a>
+ </p>
+ </div>
+ </div>
+ );
+};
- </div>
- )
-
-}
-
-export default Footer \ No newline at end of file
+export default Footer;