Passed
Push — feature/profile-skills-finaliz... ( ed24f3 )
by Tristan
06:17
created

resources/assets/js/components/ApplicantProfile/Skills/ProfileSkillsPage.tsx   A

Complexity

Total Complexity 2
Complexity/F 0

Size

Lines of Code 25
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 19
dl 0
loc 25
rs 10
c 0
b 0
f 0
mnd 2
bc 2
fnc 0
bpm 0
cpm 0
noi 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