Having the logout modal component inside the <LogoutButton> component is not optimal (sometimes it'll appear both in the header and on the page). Move the modal to the outer layout and add a function to the Candidate context to call it up. The model used with <FeedbackModal> could be used here.
Having the logout modal component inside the
<LogoutButton>
component is not optimal (sometimes it'll appear both in the header and on the page). Move the modal to the outer layout and add a function to the Candidate context to call it up. The model used with<FeedbackModal>
could be used here.