Skip to content

Commit

Permalink
fix: nonce/memo styles
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Dec 26, 2024
1 parent 0079a4c commit e6ed779
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions apps/mobile/src/features/approver/components/memo-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ export function MemoCard({ memo, onPress }: MemoCardProps) {
<NoteTextIcon />
</Avatar>
</Cell.Icon>
<Cell.Content>
<Cell.Content style={{ flexGrow: 1, flexShrink: 0 }}>
<Cell.Label variant="primary">
{t({
id: 'approver.memo.title',
message: 'Memo',
})}
</Cell.Label>
</Cell.Content>
<Cell.Aside>
<Cell.Aside style={{ flexShrink: 1 }}>
<Box flexDirection="row" alignItems="center" gap="2">
<Text variant="label02">{memo}</Text>
<Cell.Label variant="primary" numberOfLines={1} style={{ flexShrink: 1 }}>
{memo}
</Cell.Label>
<Cell.Icon>
<ChevronRightIcon variant="small" />
</Cell.Icon>
Expand Down
8 changes: 5 additions & 3 deletions apps/mobile/src/features/approver/components/nonce-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ export function NonceCard({ nonce, onPress }: NonceCardProps) {
<NumberedListIcon />
</Avatar>
</Cell.Icon>
<Cell.Content>
<Cell.Content style={{ flexGrow: 1, flexShrink: 0 }}>
<Cell.Label variant="primary">
{t({
id: 'approver.nonce.title',
message: 'Nonce',
})}
</Cell.Label>
</Cell.Content>
<Cell.Aside>
<Cell.Aside style={{ flexShrink: 1 }}>
<Box flexDirection="row" alignItems="center" gap="2">
<Text variant="label02">{nonce}</Text>
<Text variant="label02" numberOfLines={1} style={{ flexShrink: 1 }}>
{nonce}
</Text>
<Cell.Icon>
<ChevronRightIcon variant="small" />
</Cell.Icon>
Expand Down

0 comments on commit e6ed779

Please sign in to comment.