Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="icon" href="https://joshsoftware.com/wp-content/uploads/2022/07/cropped-ruby-1-2-192x192.png" type="image/png" />
<link rel="icon" href="https://framerusercontent.com/images/avVcibFXI0NwGBmwb1rz1v9f3ts.png" type="image/png" />
<title>Profile Builder</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
Expand Down
17 changes: 16 additions & 1 deletion src/components/Builder/BasicInfo/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,22 @@ const BasicInfo = ({ profileData }) => {
</Row>
<Row gutter={16}>
<Col span={12}>
<Form.Item name="josh_joining_date" label="JOSH Joining Date">
<Form.Item
name="josh_joining_date"
label="JOSH Joining Date"
rules={[
{
validator: (_, value) =>
value && value > dayjs()
? Promise.reject(
new Error(
"Joining date cannot be current in the future",
),
)
: Promise.resolve(),
},
]}
>
<DatePicker style={{ width: "100%" }} picker="month" />
</Form.Item>
</Col>
Expand Down
35 changes: 23 additions & 12 deletions src/components/Resume/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,29 @@ const Resume = forwardRef(({ data }, ref) => {
</div>
<div>
{(profile?.years_of_experience ||
profile?.josh_joining_date?.String) && (
<div className={styles.iconTextWrapper}>
<CheckSquareOutlined />{" "}
<span>
{calculateTotalExperience(
profile?.years_of_experience,
profile?.josh_joining_date?.String,
)}{" "}
Years of Experience
</span>
</div>
)}
profile?.josh_joining_date?.String) &&
(() => {
const years = calculateTotalExperience(
profile?.years_of_experience,
profile?.josh_joining_date?.String,
);

if (years === 0) {
return null;
}

return (
<div className={styles.iconTextWrapper}>
<CheckSquareOutlined />{" "}
<span>
{years < 1
? `${Math.floor(years * 12)} Months of Experience`
: `${years} Year${years > 1 ? "s" : ""} of Experience`}{" "}
</span>
</div>
);
})()}

{profile?.email && contactDetails && (
<div className={styles.iconTextWrapper}>
<MailOutlined /> <span>{profile?.email}</span>
Expand Down