Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit bb065e8

Browse files
author
Jason Sadler
committed
Add Funds modal now shows crypto selections centered
1 parent 079dbad commit bb065e8

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/features/rewards/modalAddFunds/__snapshots__/spec.tsx.snap

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ exports[`ModalAddFunds tests basic tests matches the snapshot 1`] = `
3535
-webkit-box-align: stretch;
3636
-ms-flex-align: stretch;
3737
align-items: stretch;
38+
-webkit-box-pack: center;
39+
-webkit-justify-content: center;
40+
-ms-flex-pack: center;
41+
justify-content: center;
3842
}
3943
4044
.c10 {

src/features/rewards/modalAddFunds/style.ts

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const StyledAddresses = styled<{}, 'div'>('div') `
3636
flex-wrap: wrap;
3737
margin: 0 -15px;
3838
align-items: stretch;
39+
justify-content: center;
3940
`
4041

4142
export const StyledAddress = styled<StyleProps, 'div'>('div') `

stories/features/rewards/modal.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,22 @@ storiesOf('Feature Components/Rewards/Modal', module)
387387
/>
388388
)
389389
})
390+
.add('Add funds (JP)', () => {
391+
const addresses: Address[] = [
392+
{
393+
type: 'BAT',
394+
address: '0xF10bfc0EB8Fcfd1240a5BB97C3e5a7752cD1C388',
395+
qr: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAAAAAA+16u1AAACPklEQVR42u3bwU7DMBAE0P7/T8ONA1LcGXsTFfRyKpQ2+3IY2bvm9fWfrhcNDQ0NDQ0NDQ0NDQ0NDc2p5vX+6m7y84lfry6/ebMCGhqaSU1QW/CJX2+kT6KvgIaG5h7NZd5UubQu6/KbgwpoaGg+QNNn2iWYhobm72rSzwZxRkND81GatGex+bG14eHdGg0NTd/rvPnVw51bGhqajTHj8iZplWlL5O4pLg0NTbC7qIruextBqtLQ0DyiqQaYl8LL363Dbv04hlY2NDQ0qSYoK4ikILqC5c15ptHQ0FSa4E792HJzhHo08aChoTmeEfQ3Duae/RLqqMtBQ0NzsrIJGhebtfWtz/P9DQ0NTZVpgStY43T9yrBDQkND84imGmX2rYn10qiKMxoamnFNuhxJrZvnH9MGBw0NzbgmbWakZaVReHIaioaGZkhTRVe1sgkmKNXGh4aG5h7NzHQybWb0OXfU66ShoakmHsGwI9gMBXk4s8ahoaEZ0lSdy+CU08k/TQ0lNA0NzaYmaFqmG5X+EY13bmloaI4zbXOP0g871o9tKKFpaGjSTAuOL6Y90X7Pk8YZDQ3NpCZuKoQHodYxlbY5aWhontO83l/rP+6LmTlQTUNDM6lJkyzY7lSLpODJ0tDQPKfZLDCIs2p4Mtm5paGhuVmzLjrY5KQNTxoamo/XHGfaxgiGhoZmWpO+GxxcSmNq8+ADDQ3NuCbdbAQ/phuV4I9v7NzS0ND8g4uGhoaGhoaGhoaGhoaGhqa5vgFTleQ0sHcoKgAAAABJRU5ErkJggg=='
396+
}
397+
]
398+
399+
return (
400+
<ModalAddFunds
401+
addresses={addresses}
402+
onClose={doNothing}
403+
/>
404+
)
405+
})
390406
.add('Donation',() => {
391407
const rows: DonationDetailRow[] = [
392408
{

0 commit comments

Comments
 (0)