update redux
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
"use client"
|
||||
|
||||
import UserAddressCard from "@/components/user-profile/UserAddressCard";
|
||||
import UserInfoCard from "@/components/user-profile/UserInfoCard";
|
||||
import UserMetaCard from "@/components/user-profile/UserMetaCard";
|
||||
import { Metadata } from "next";
|
||||
import React from "react";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Next.js Profile | TailAdmin - Next.js Dashboard Template",
|
||||
description:
|
||||
"This is Next.js Profile page for TailAdmin - Next.js Tailwind CSS Admin Dashboard Template",
|
||||
};
|
||||
import { RootState } from "@/store/store";
|
||||
import { useSelector } from "react-redux";
|
||||
|
||||
export default function Profile() {
|
||||
const user = useSelector((state: RootState) => state.user.data);
|
||||
console.log("Current User:", user);
|
||||
return (
|
||||
<div>
|
||||
<div className="rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] lg:p-6">
|
||||
|
||||
Reference in New Issue
Block a user