@oxyhq/services 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,eAAO,MAAM,oBAAoB;aAEpB,MAAM,IAAI;2CA4ErB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
("use client");
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
|
-
import Link from "next/link";
|
|
6
5
|
import useOxySession from "../../hooks/useOxySession";
|
|
7
6
|
import { forwardRef } from "react";
|
|
7
|
+
import Image from "next/image";
|
|
8
8
|
import getUserById from "../../hooks/getUserById";
|
|
9
9
|
import styles from "./styles/session-owner-modal.module.css";
|
|
10
10
|
export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
@@ -31,9 +31,25 @@ export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
|
31
31
|
ease: "easeInOut",
|
|
32
32
|
duration: 0.2,
|
|
33
33
|
}, className: styles.container, style: style, role: "group" },
|
|
34
|
-
React.createElement(
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
34
|
+
React.createElement("div", { className: "relative z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-darkC2 px-5 py-3 text-sm font-medium text-textC\n shadow-md shadow-[#b4bebb]" },
|
|
35
|
+
React.createElement("button", { className: "absolute right-3 top-3 rounded-full bg-darkC2 p-1 hover:bg-darkC" }),
|
|
36
|
+
React.createElement("p", null, session?.user?.email),
|
|
37
|
+
React.createElement("div", { className: "h-20 w-20 rounded-full border" },
|
|
38
|
+
React.createElement(Image, { src: session?.user?.avatar, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })),
|
|
39
|
+
React.createElement("h2", { className: "tablet:text-2xl text-xl font-normal" },
|
|
40
|
+
"Hi, ",
|
|
41
|
+
session?.user?.name,
|
|
42
|
+
"!"),
|
|
43
|
+
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-textC2 hover:bg-[#d3dfee]" }, "Manage your Google Account"),
|
|
44
|
+
React.createElement("div", { className: "flex space-x-1" },
|
|
45
|
+
React.createElement("button", { className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-l-full bg-white py-3 pl-3 hover:bg-darkC" },
|
|
46
|
+
React.createElement("span", null, "Add account")),
|
|
47
|
+
React.createElement("button", { className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-darkC" },
|
|
48
|
+
React.createElement("span", null, "Sign out"))),
|
|
49
|
+
React.createElement("div", { className: "flex h-10 items-center space-x-2 text-xs" },
|
|
50
|
+
React.createElement("span", null, "Privacy policy"),
|
|
51
|
+
React.createElement("span", { className: "-mt-[3px]" }, " . "),
|
|
52
|
+
" ",
|
|
53
|
+
React.createElement("span", null, "Terms of service")))));
|
|
38
54
|
});
|
|
39
55
|
AccountSwitcherModal.displayName = "AccountSwitcherModal";
|