Skip to content

Commit

Permalink
Ensure recipe meta is not displayed in clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed May 8, 2024
1 parent 59dd76c commit a7de1b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type CardContainerProps = ContainerProps & {
addImageToCard: (id: string, response: ValidationResponse) => void;
updateCardMeta: (id: string, meta: CardMeta) => void;
clearCardSelection: (id: string) => void;
type: CardTypes;
type?: CardTypes;
isSelected: boolean;
numSupportingArticles: number;
editMode: EditMode;
Expand Down Expand Up @@ -218,6 +218,7 @@ class Card extends React.Component<CardContainerProps> {
onClick={isUneditable ? undefined : () => onSelect(uuid)}
size={size}
textSize={textSize}
showMeta={showMeta}
/>
{getSublinks}
</>
Expand Down
2 changes: 1 addition & 1 deletion fronts-client/src/components/card/article/ArticleCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,6 @@ const createMapStateToProps = () => {
};
};

export { ArticleComponentProps, ArticleCard as ArticleComponent };
export { ArticleComponentProps, ArticleCard };

export default connect(createMapStateToProps)(ArticleCard);
2 changes: 1 addition & 1 deletion fronts-client/src/components/card/recipe/RecipeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const RecipeCard = ({
isUneditable,
collectionId,
frontId,
showMeta,
showMeta = true,
...rest
}: Props) => {
const card = useSelector<State, Card>((state) => selectCard(state, id));
Expand Down

0 comments on commit a7de1b7

Please sign in to comment.