Skip to content

Commit 6d3b2ef

Browse files
committed
fix: import react-dom error
1 parent cf07070 commit 6d3b2ef

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/components/Navbar.jsx

+5-7
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ const Navbar = () => {
7070
</p>
7171
</section>
7272
<section className="flex flex-row items-center gap-2 md:mr-6">
73-
<button
74-
className="flex flex-row items-center border-[2px] border-black text-black hover:text-white hover:bg-black px-4 py-1 rounded-[10px]"
75-
onClick={openTemplateModal}
76-
>
77-
<GoDownload className="text-[26px] mr-1" />
78-
<p className="text-[14px] font-bold">Template</p>
79-
</button>
73+
{userStatus && (
74+
<p className="md:flex hidden">
75+
Hello! {userData.decodedToken.first_name}
76+
</p>
77+
)}
8078
{userStatus ? (
8179
<>
8280
<PiUserCircleFill

src/main.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { createRoot } from "react-dom";
2+
import { createRoot } from "react-dom/client";
33
import App from "./App.jsx";
44
import "./index.css";
55
import { Provider } from "react-redux";

src/screens/AcademicExcellence/Option1.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ const Option1 = () => {
178178
<button
179179
className="bg-[#923DFF] p-1 rounded-sm cursor-pointer mr-1.5"
180180
onClick={() => {
181-
console.log(params.row);
182181
openUpdateAwardeeModalHandler(params.row);
183182
}}
184183
>

0 commit comments

Comments
 (0)