Skip to content

Commit

Permalink
use infoLabel instead of description in Steward cards (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: LewisB <[email protected]>
  • Loading branch information
krisbitney and L03TJ3 authored Feb 1, 2024
1 parent 4550cec commit 30a3bce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IpfsCollective, StewardCollective } from '../../models/models';
import { styles } from './styles';
import { InfoIcon, StewardOrange } from '../../assets';
import { calculateGoodDollarAmounts } from '../../lib/calculateGoodDollarAmounts';
import { defaultInfoLabel } from '../../models/constants';

interface StewardCollectiveCardProps {
collective: StewardCollective;
Expand Down Expand Up @@ -32,6 +33,8 @@ function StewardCollectiveCard({

const dynamicContainerStyle = isDesktopResolution ? { width: '48%' } : {};

const infoLabel = ipfsCollective.infoLabel ?? defaultInfoLabel;

return (
<View style={[styles.cardContainer, styles.elevation, dynamicContainerStyle]}>
<View style={styles.cardContentContainer}>
Expand All @@ -40,7 +43,7 @@ function StewardCollectiveCard({
<Text style={styles.title}>{ipfsCollective.name}</Text>
<View style={styles.cardDescription}>
<Image source={InfoIcon} style={styles.infoIcon} />
<Text style={styles.description}>{ipfsCollective.description}</Text>
<Text style={styles.description}>{infoLabel}</Text>
</View>

<View style={styles.actionsContent}>
Expand Down

0 comments on commit 30a3bce

Please sign in to comment.