dfat
f475eb01ec
style(scss): use function to apply z-index
This update uses a function to apply the z-index in each .scss file.
The function needs to iterate over a map of z-index values, so all of
the z-indexes end up in a single list and can be tracked more easily.
This allows us to manage all z-index values in a single location.
7 years ago
Tom Kirkpatrick
085f81d346
fix(wallet): fix console error in request form
Ensure that the FormattedNumber component gets passed a valid number.
If we don't have a value, the the value to 0.
6 years ago
Jack Mallers
f7964c8686
fix(theme): make compatible with multi-language
6 years ago
Tom Kirkpatrick
70bfa6cb73
feat(i18n): use local currency display rules
Use `intl.formattedNumber` to display currency values to ensure that
currencies are displayed using the formatting rules that match the
user's locale.
6 years ago
Tom Kirkpatrick
aedd1ee233
feat(i18n): initial multi-language support
6 years ago
Tom Kirkpatrick
aeb832d30a
refactor(webpack): use portable scss include paths
Rather than using relative paths for css imports - which can break when
we move files around - add our styles path to the webpack sass-loader
loader using the `includePaths` setting.
6 years ago
Tom Kirkpatrick
f51586d3ce
refactor(fs): group files by component
Group component related file in a directory named after the component.
6 years ago
Tom Kirkpatrick
eb71b6c579
fix(ui): autofocus and clear pay and request forms
When the payment and request forms open ensure that the forms are empty
and the most relevant form field is selected by default.
Fix #389
6 years ago
Jack Mallers
161fec0133
fix(pay): dont focus on value input
6 years ago
Jack Mallers
59a64714d1
feat(settings): close on blur click
fix(multi-lang): switch ticker to settings store
fix(tests): pass all tests
fix(fiat): switch from usd to fiat
fix(settings): fix console errors
fix(settings): make styles consistent
fix(tests): remove unneeded mocks
fix(payform): call satoshisToFiat now
fix(network): rebase + fix network fiat amt
7 years ago
Jack Mallers
6096fa00fd
fix(fiat): dynamic fiat symbol
7 years ago
Data Courier
818dd25012
feat(ui): integrate AmountInput into wallet UI
Use the new AmountInput component throughout the wallet.
Fix #682
7 years ago
Tom Kirkpatrick
4ee87f1476
refactor(react): ternary conditional classnames
React v16.x reports errors when using boolean operators for conditional
classnames and requires that you instead use ternary style conditional
clauses.
7 years ago
Tom Kirkpatrick
5681b82a3c
refactor: move helper code to lib directory
7 years ago
Tom Kirkpatrick
8d0838d691
fix(accessibility): don't use white on yellow text
White on yellow presents accessibility challenges and should be avoided.
Change the white on yellow used in highlighted buttons for a darker
colour against the yellow background.
Fix #356
7 years ago
Tom Kirkpatrick
5fac7b1e2b
fix(ui): increase currency selector z-index
Ensure that the currency selector dropdown on the pay/request form shows
ontop of other elements on the page to ensure that the full area of the
dropdown is clickable.
7 years ago
Tom Kirkpatrick
99b930f47e
refactor: move styles to styles directory
7 years ago
Tom Kirkpatrick
f85aa10cff
style: remove redundant font declarations
7 years ago
Tom Kirkpatrick
849f2bf9ea
style: run all stylesheets through prettier
7 years ago
Tom Kirkpatrick
2d6dec5afb
style: run all stylesheets through stylelint
7 years ago
Tom Kirkpatrick
ba34367750
perf(bundle-size): remove lodash dependency
Shaves 34.57k of final renderer.prod.js bundle size.
7 years ago
Ben Woosley
dc29c80ad0
style(line length): Drop prettier line length from 120 to 100
Subjectively, this increases general readability, while the higher max-length
limit allows for longer strings and comments, etc.
7 years ago
Ben Woosley
f87236495a
style(line length): Limit prettier line length to 120 chars
150 is a bit too long
7 years ago
Tom Kirkpatrick
0c7e75eb05
perf(bundle-size): only import used react icons
The final size of renderer.prod.js is about 4.75mb. 2.35mb of this comes
from react-icons.
Update the react icon imports to import only the specific icons that we
use. This reduces the final size of renderer.prod.js by about 50%
7 years ago
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
7 years ago
Tom Kirkpatrick
e586dc5bb8
fix(pay-form): ensure payment form shows on top
This fixes an issue where the payment form - initiated from an external
request payment link - would display under the connect dialog if that was
already open. This change ensures that the payment form always displays
on the top most layer.
Fix #284
7 years ago
odb366
0182d4b351
fix(reformat-pay-form): fixed bad formatting
7 years ago
odb366
1df69c067b
fix(reformat-request-form): fixed bad formatting
7 years ago
Jack Mallers
3eb2263ff4
feature(SubmitChannel): wire up backend to new submit channel form + loading pubkeys UI
7 years ago
Jack Mallers
a0f9027180
feature(contactsform): tie up new contacts form to reducer
7 years ago
Jack Mallers
b0d5ff90c0
fix(tests): update the tests
7 years ago
Jack Mallers
1f9a316326
fix(lint): fix linting errors
7 years ago
Jack Mallers
54c31e2de3
feature(wallet): build new wallet modal/refactor current wallet component
7 years ago
Jack Mallers
5c126fd595
feature(payform): add error messages to py form
7 years ago
Jack Mallers
357cf4e0ef
fix(lint): fix all lint errors except a few (will fix the rest after i finish the rest of the modals)
7 years ago
Jack Mallers
b5686570e4
fix(oldforms): remove old forms
7 years ago
Jack Mallers
9c88c78ff8
feature(request): usd amount in request form
7 years ago
Jack Mallers
e04d308687
feature(multi-currency): convert to sats before sending coins or making a request, no matter the currency
7 years ago
Jack Mallers
0883bbd486
feature(payform): add multi-currency support for payform
7 years ago
Jack Mallers
a827e65b55
feature(payform): new description
7 years ago
Jack Mallers
04798ac7f9
feature(payform): new pay form MVP
7 years ago
Ben Woosley
acbf786c0a
fix(lints): Manually fix some trivial lints
7 years ago
Ben Woosley
4125283587
enhance(lints): Enable currenly disabled lints
7 years ago
dfat
6868bd34a7
fix(network-loading-css): Increase z-index on Form modal
7 years ago
Kehlmann, Matthew
73cc0b25e2
fix(number-input-pinwheel): Whitespace
7 years ago
Kehlmann, Matthew
a31bc0ef22
fix(number-input-pinwheel): Fix rebase merge error
7 years ago
Kehlmann, Matthew
a1bbd193f4
fix(number-input-pinwheel): Whitespace fix
7 years ago
Kehlmann, Matthew
fcf0ee2c70
fix(number-input-pinwheel): Use SASS ampersand to avoid repeating selector info
7 years ago
Kehlmann, Matthew
e0251399cd
fix(number-input-pinwheel): Remove pinwheel arrows that were showing in the amount field of the request and pay forms
7 years ago
Ben Woosley
3b5e118a23
fix(amount-input-width): Size the PayForm amount input to hold at least 2 chars
Because the "." of "0." is not propagated via the JS, so not in the size of
the amount string.
7 years ago