Skip to content

Commit

Permalink
feat: felt uncomfortable about my decision to leave in the stub code
Browse files Browse the repository at this point in the history
FIXES: APER-2190
  • Loading branch information
deborahgu committed Sep 29, 2023
1 parent 8fb08a9 commit 56130ed
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/components/ProgramRecord/ProgramRecord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ function ProgramRecord({ isPublic }) {
const [recordDetails, setRecordDetails] = useState({});
const [isLoaded, setIsLoaded] = useState(false);
const [hasNoData, setHasNoData] = useState(false);
// Leaving a stub value in for a method that's ticketed to fix
// eslint-disable-next-line no-unused-vars
const [isNotFound, setNotFound] = useState(false);
const [showSendRecordButton, setShowSendRecordButton] = useState(false);

const [sendRecord, setSendRecord] = useState({
Expand Down Expand Up @@ -178,19 +175,6 @@ function ProgramRecord({ isPublic }) {
</div>
);

const renderNotFound = () => (
<>
{!isPublic && renderBackButton()}
<p>
<FormattedMessage
id="page.notfound.message"
defaultMessage="The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again."
description="Error message when a page does not exist for the provided URL"
/>
</p>
</>
);

const renderLoading = () => (
<>
{!isPublic && renderBackButton()}
Expand All @@ -209,9 +193,6 @@ function ProgramRecord({ isPublic }) {
if (hasNoData) {
return renderCredentialsServiceIssueAlert();
}
if (isNotFound) {
return renderNotFound();
}
return renderProgramDetails();
}
return renderLoading();
Expand Down

0 comments on commit 56130ed

Please sign in to comment.