Skip to content

Commit

Permalink
[prmp-1035] change prop default
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Oct 23, 2024
1 parent a40f848 commit bd43803
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/src/components/generic/recordMenuCard/RecordMenuCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type Props = HTMLAttributes<HTMLDivElement> & {
recordLinks: Array<LGRecordActionLink>;
setStage: Dispatch<SetStateAction<LG_RECORD_STAGE>>;
showMenu: boolean;
className: string;
className?: string;
};

type SubSectionProps = {
Expand All @@ -17,7 +17,12 @@ type SubSectionProps = {
setStage: Dispatch<SetStateAction<LG_RECORD_STAGE>>;
};

function RecordMenuCard({ recordLinks, setStage, showMenu, className }: Props) {
function RecordMenuCard({
recordLinks,
setStage,
showMenu,
className = 'lloydgeorge_record-stage_flex-row',
}: Props) {
const updateActions = recordLinks.filter((link) => link.type === RECORD_ACTION.UPDATE);
const downloadActions = recordLinks.filter((link) => link.type === RECORD_ACTION.DOWNLOAD);

Expand Down Expand Up @@ -98,7 +103,4 @@ const LinkItem = ({ link, setStage }: LinkItemProps) => {
}
};

RecordMenuCard.defaultProps = {
className: 'lloydgeorge_record-stage_flex-row',
};
export default RecordMenuCard;

0 comments on commit bd43803

Please sign in to comment.