Skip to content

Commit

Permalink
feat: meetsRequirements on details page
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisfp0 committed Oct 31, 2024
1 parent 108acd6 commit fe3ba35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface ApplicationDetailsProps {
}
status: 'pending' | 'approved' | 'rejected' | 'ignored'
createdAt: string
meetsRequirements: boolean
role: {
title: string
company: string
Expand Down Expand Up @@ -67,6 +68,8 @@ export default function ApplicationDetails({
const [isOpen, setIsOpen] = useState(false)
const dropdownRef = useRef<HTMLDivElement>(null)

console.log({ application })

useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
if (
Expand Down Expand Up @@ -206,6 +209,14 @@ export default function ApplicationDetails({
</label>
<p className="mt-1">{application.details.englishLevel}</p>
</div>
<div>
<label className="block text-sm font-medium text-gray-600">
Atende aos requisitos
</label>
<p className="mt-1">
{application.meetsRequirements.toString()}
</p>
</div>
</div>
</section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async function getApplication(applicationId: string) {
},
status: data.status,
createdAt: data.createdAt,
meetsRequirements: data.meetsRequirements,
role: {
title: data.role.title,
company: data.role.company,
Expand Down

0 comments on commit fe3ba35

Please sign in to comment.