Skip to content

Commit

Permalink
fix: 🐛 add incidentRef in incident details and CustomBreadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
yeukfei02 committed Jan 7, 2023
1 parent 66ef871 commit eaddb90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ interface Props {
page: string;
subPage?: string;
incidentId?: string;
incidentRef?: string;
}

function CustomBreadcrumbs({ page, subPage, incidentId }: Props) {
function CustomBreadcrumbs({ page, subPage, incidentId, incidentRef }: Props) {
const navigate = useNavigate();

const handlePageClick = (page: string) => {
Expand Down Expand Up @@ -73,7 +74,7 @@ function CustomBreadcrumbs({ page, subPage, incidentId }: Props) {
>
{page}
</div>
<Typography color="text.primary">{subPage}</Typography>
<Typography color="text.primary">{subPage} (#{incidentRef})</Typography>
</Breadcrumbs>
);
}
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/components/incidentDetail/IncidentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ function IncidentDetail() {
page="Incidents"
subPage="Incident Detail"
incidentId={incident ? incident.id : ''}
incidentRef={incidentRef}
/>
</div>

Expand Down

0 comments on commit eaddb90

Please sign in to comment.