Skip to content

Commit

Permalink
feat: Use the default styling for disabled cards (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon authored Apr 1, 2024
1 parent 07e3314 commit 73db29f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
8 changes: 7 additions & 1 deletion src/components/Pacs/components/PatientCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ const PatientCard = ({ queryResult }: { queryResult: any }) => {

return (
<>
<Card isRounded isExpanded={isPatientExpanded}>
<Card
isFlat={true}
isFullHeight={true}
isCompact={true}
isRounded={true}
isExpanded={isPatientExpanded}
>
<CardHeader
actions={{
actions: <CardHeaderComponent resource={patient} type="patient" />,
Expand Down
17 changes: 5 additions & 12 deletions src/components/Pacs/components/SeriesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,20 +480,13 @@ const SeriesCardCopy = ({ series }: { series: any }) => {
</CardHeader>
);

let background = "";
if (isDisabled) {
if (theme.isDarkTheme) {
background = "#4F5255";
}
background = "#D2D2D2";
}

return (
<Card
style={{
background: background,
}}
isRounded
isDisabled={isDisabled}
isFlat={true}
isFullHeight={true}
isCompact={true}
isRounded={true}
>
{preview && data?.fileToPreview ? filePreviewLayout : rowLayout}
{data?.fileToPreview && largeFilePreview}
Expand Down
10 changes: 9 additions & 1 deletion src/components/Pacs/components/StudyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@ const StudyCardCopy = ({ study }: { study: any }) => {

return (
<>
<Card isExpanded={isStudyExpanded} isRounded isSelectable isClickable>
<Card
isFlat={true}
isFullHeight={true}
isCompact={true}
isRounded={true}
isExpanded={isStudyExpanded}
isSelectable
isClickable
>
<CardHeader
actions={{
actions: <CardHeaderComponent resource={study} type="study" />,
Expand Down

0 comments on commit 73db29f

Please sign in to comment.