visortelle commented on code in PR #789:
URL: https://github.com/apache/pulsar-site/pull/789#discussion_r1488453135


##########
src/components/pages/CommunityPage/shared/ContentCard/ContentCard.tsx:
##########
@@ -21,17 +22,19 @@ export type ContentCardProps = {
 };
 
 const ContentCard: React.FC<ContentCardProps> = (props) => {
+  let theclass = s.ContentCard;
+  if(props.format == 'column') theclass = s.ContentCardColumn;
   return (
-    <div className={s.ContentCard}>
+    <div className={theclass}>

Review Comment:
   We can get rid of the `theclass` variable here:
   
   ```tsx
   className={props.format == 'column' ? s.ContentCardColumn : undefined}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to