Skip to content

Commit d4dd201

Browse files
committed
2 parents d5c1907 + dd91270 commit d4dd201

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/settingComponents/generalPage.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ import 'react-loading-skeleton/dist/skeleton.css';
1212
import { ToastContainer, toast } from 'react-toastify';
1313
import 'react-toastify/dist/ReactToastify.css';
1414
import Markdown from 'react-markdown';
15+
import { Context } from '@/context';
16+
import { useContext } from 'react';
17+
1518

1619
export default function General() {
1720
const router = useRouter();
1821
const bioRef = useRef(null);
22+
const { role } = useContext(Context);
1923

2024
const [isBannerPopupOpen, setIsBannerPopupOpen] = useState(false);
2125
const [isPopupOpen, setIsPopupOpen] = useState(false);
@@ -463,6 +467,9 @@ export default function General() {
463467
</div>
464468
</div>
465469

470+
{
471+
role === "PRO" && (
472+
<>
466473
<div className="sm:col-span-4">
467474
<label
468475
htmlFor="photo"
@@ -497,6 +504,10 @@ export default function General() {
497504
</div>
498505
</div>
499506

507+
</>
508+
)
509+
}
510+
500511
<div className="sm:col-span-6">
501512
<label
502513
htmlFor="description"

0 commit comments

Comments
 (0)