Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ const OpportunityDetails: FC<{
{props.opportunity?.skills.map(item => (<span className={styles.skillPill}>{item.name}</span>))}
</div>
<h2 className={styles.subHeading}> Description </h2>
<p>
{props.opportunity?.overview}
</p>
{props.opportunity?.overview && (
<div dangerouslySetInnerHTML={{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using dangerouslySetInnerHTML can expose the application to XSS attacks if the HTML content is not properly sanitized. Ensure that props.opportunity.overview is sanitized before rendering it in this way.

__html: props.opportunity.overview.replace(/\n/g, '<br />'),
}}
/>
)}
</div>
<div>
<h2 className={styles.subHeading}> Complexity </h2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ const CopilotRequestForm: FC<{}> = () => {
.setFullYear(new Date()
.getFullYear() + 2))}
minYear={new Date()}
className={styles.datepicker}
/>
<p className={styles.formRow}>How many weeks will you need the copilot for?</p>
<InputText
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ $gradient: linear-gradient(
margin-right: $sp-1;
}
}

.datepicker input{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a space before the opening curly brace for consistency with the rest of the file's style.

color: black;
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good practice to ensure there is a newline at the end of the file to avoid potential issues with some tools and version control systems.