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 99a8f71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/components/generic/recordMenuCard/RecordMenuCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 99a8f71

Please sign in to comment.