Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GoodDollar/GoodCollective into kr…
Browse files Browse the repository at this point in the history
…is/show-more-link
  • Loading branch information
L03TJ3 committed Feb 7, 2024
2 parents 72dcd5d + b8306b9 commit 16e730c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function App(): JSX.Element {
const styles = StyleSheet.create({
body: {
backgroundColor: Colors.gray[400],
minHeight: '100vh',
height: 'auto',
},
});

Expand Down
17 changes: 10 additions & 7 deletions packages/app/src/components/RowItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ function RowItem({ rowInfo, rowData, balance, currency, imageUrl }: RowItemProps
<Image source={{ uri: imageUrl }} style={styles.rowIcon} />
<Text style={styles.rowInfo}>{rowInfo}</Text>
</View>
<View style={styles.rowData}>
<Text style={{ gap: 2 }}>
<Text>
<View style={{ gap: 2 }}>
{!currency && <Text style={styles.rowData}>{rowData}</Text>}
{currency && (
<Text style={styles.rowData}>
<Text>{currency}</Text> <Text style={{ ...InterRegular }}>{rowData}</Text>
{isDesktopResolution && currency && <Text style={styles.rowBalance}> = {usdBalance} USD</Text>}
{isDesktopResolution && <Text style={styles.rowBalance}> = {usdBalance} USD</Text>}
</Text>
{!isDesktopResolution && currency && <Text style={styles.rowBalance}>= {usdBalance} USD</Text>}
</Text>
)}
{!isDesktopResolution && currency && <Text style={styles.rowBalance}>= {usdBalance} USD</Text>}
</View>
</View>
);
Expand Down Expand Up @@ -61,6 +62,7 @@ const styles = StyleSheet.create({
maxWidth: '60%',
fontWeight: '700',
fontSize: 16,
lineHeight: 24,
color: Colors.black,
...InterSemiBold,
},
Expand All @@ -72,13 +74,14 @@ const styles = StyleSheet.create({
color: Colors.gray[100],
textAlign: 'right',
fontSize: 16,
lineHeight: 24,
...InterSemiBold,
gap: 2,
},
rowBalance: {
fontSize: 12,
textAlign: 'right',
color: Colors.gray[200],
lineHeight: 18,
...InterRegular,
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/lib/formatTime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import moment from 'moment';

export const formatTime = (timestamp: number): string => {
return moment.unix(timestamp).format('MMM D, h:mma');
return moment.unix(timestamp).format('MMMM D, YYYY');
};

0 comments on commit 16e730c

Please sign in to comment.