Total Complexity | 2 |
Complexity/F | 0 |
Lines of Code | 25 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import React from "react"; |
||
2 | import ReactDOM from "react-dom"; |
||
3 | import RootContainer from "../../RootContainer"; |
||
4 | |||
5 | export const ProfileExperiencePage: React.FC<{ applicantId: number }> = ({ |
||
6 | applicantId, |
||
7 | }) => { |
||
8 | return <p>Hello welcome to the skills page!</p>; |
||
9 | }; |
||
10 | |||
11 | if (document.getElementById("profile-skills")) { |
||
12 | const root = document.getElementById("profile-skills"); |
||
13 | if (root && "applicantId" in root.dataset) { |
||
14 | const applicantId = Number(root.dataset.applicantId as string); |
||
15 | ReactDOM.render( |
||
16 | <RootContainer> |
||
17 | <ProfileExperiencePage applicantId={applicantId} /> |
||
18 | </RootContainer>, |
||
19 | root, |
||
20 | ); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | export default ProfileExperiencePage; |
||
25 |