Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions web/src/pages/Courts/CourtDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const CourtHeader = styled.h1`
`;

const CourtInfo = styled.div`
display: flex:
display: flex;
flex-direction: column;
gap: 16px;

Expand Down Expand Up @@ -71,13 +71,10 @@ const StyledCard = styled(Card)`
`;

const StyledBreadcrumb = styled(Breadcrumb)`
display: flex;
margin-top: 12px;
align-items: center;
`;

const StyledBreadcrumbSkeleton = styled.div`
margin-top: 12px;
button {
font-size: 16px;
}
`;

const CourtDetails: React.FC = () => {
Expand All @@ -102,13 +99,7 @@ const CourtDetails: React.FC = () => {
<CourtHeader>
<CourtInfo>
{policy ? policy.name : <StyledSkeleton width={200} />}
{items.length > 1 ? (
<StyledBreadcrumb items={items} />
) : (
<StyledBreadcrumbSkeleton>
<StyledSkeleton width={100} />
</StyledBreadcrumbSkeleton>
)}
{items.length > 1 ? <StyledBreadcrumb items={items} /> : <StyledSkeleton width={100} />}
</CourtInfo>
<ButtonContainer>
<HowItWorks
Expand Down