Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stitches in new reaction payment page
- Loading branch information
Showing
12 changed files
with
33 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ npm-debug.log | |
dump.rdb | ||
manifest.json | ||
.cache | ||
.cache-loader | ||
COMMIT_HASH.txt | ||
|
||
/data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 2 additions & 31 deletions
33
src/desktop/apps/user/components/payment_methods/index.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,2 @@ | ||
a.settings-payment-methods__new.avant-garde-button-white.is-small( | ||
class='js-add' | ||
) Add New | ||
|
||
if cards && cards.length | ||
.settings-payment-methods__cards.grid-2-up | ||
for card in cards | ||
.settings-payment-methods__cards__card.grid-item | ||
if card.id | ||
.settings-payment-methods__cards__card__digits | ||
| #{card.brand} xxxx-#{card.last_digits} | ||
|
||
.settings-payment-methods__cards__card__name | ||
= card.name | ||
|
||
.settings-payment-methods__cards__card__exp | ||
| #{card.expiration_month}/#{card.expiration_year} | ||
|
||
.settings-payment-methods__cards__card__logo.credit-card-icon( | ||
data-provider= card.brand | ||
) | ||
else | ||
.loading-spinner | ||
|
||
.settings-payment-methods__cards__card__delete.avant-garde-button-white.is-small( | ||
class='js-delete' | ||
data-id= card.id | ||
) Remove | ||
|
||
else | ||
| Nothing yet. | ||
#stitch-credit-cards | ||
!= stitch.components.UserSettingsPayments({ mountId: 'stitch-credit-cards' }) |
39 changes: 3 additions & 36 deletions
39
src/desktop/apps/user/components/payment_methods/view.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
include ../../templates/mixins | ||
|
||
+settings-section('payment-methods', 'Payment Methods') | ||
+settings-section('payment-methods', '') | ||
include ../../components/payment_methods/index | ||
|
||
#some-other-id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ | |
pointer-events none | ||
|
||
.credit-card-form | ||
width 75% | ||
margin 0 auto | ||
|
||
&__form | ||
|
12 changes: 12 additions & 0 deletions
12
src/desktop/components/react/stitch_components/ReactionUserSettingsPayments.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react" | ||
import { ContextProvider } from "reaction/Artsy" | ||
import { UserSettingsPaymentsQueryRenderer as Renderer } from "reaction/Components/Payment/UserSettingsPayments" | ||
import { data as sd } from "sharify" | ||
|
||
export const ReactionUserSettingsPayments = () => { | ||
return ( | ||
<ContextProvider user={sd.CURRENT_USER}> | ||
<Renderer /> | ||
</ContextProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters