-
Notifications
You must be signed in to change notification settings - Fork 13
PM-590 Add start date #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PM-590 Add start date #1047
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { FC, useEffect, useState } from 'react' | ||
import { useNavigate, useParams } from 'react-router-dom' | ||
import moment from 'moment' | ||
|
||
import { | ||
ContentLayout, | ||
|
@@ -29,7 +30,7 @@ const CopilotOpportunityDetails: FC<{}> = () => { | |
if (!opportunity) { | ||
setShowNotFound(true) | ||
} | ||
}, 2000) | ||
}, 5000) | ||
|
||
return () => clearTimeout(timer) // Cleanup on unmount | ||
}, [opportunity]) | ||
|
@@ -60,6 +61,17 @@ const CopilotOpportunityDetails: FC<{}> = () => { | |
<span className={styles.infoValue}>{opportunity?.status}</span> | ||
</div> | ||
</div> | ||
<div className={styles.infoColumn}> | ||
<IconOutline.PlayIcon className={styles.icon} /> | ||
<div className={styles.infoText}> | ||
<span className={styles.infoHeading}>Start Date</span> | ||
<span className={styles.infoValue}> | ||
{moment(opportunity?.startDate) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a fallback or default value for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
.format('MMM D, YYYY')} | ||
|
||
</span> | ||
</div> | ||
</div> | ||
<div className={styles.infoColumn}> | ||
<IconOutline.CalendarIcon className={styles.icon} /> | ||
<div className={styles.infoText}> | ||
|
Uh oh!
There was an error while loading. Please reload this page.