Skip to content

Commit

Permalink
fix amount placeholder and wallet connect colors source
Browse files Browse the repository at this point in the history
  • Loading branch information
arentant committed May 30, 2023
1 parent 522fa61 commit d84dc19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/Input/Amount.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useFormikContext } from "formik";
import { forwardRef, useEffect, useRef } from "react";
import { forwardRef, useRef } from "react";
import { useSettingsState } from "../../context/settings";
import { CalculateMaxAllowedAmount, CalculateMinAllowedAmount } from "../../lib/fees";
import { SwapFormValues } from "../DTOs/SwapFormValues";
Expand All @@ -17,7 +17,7 @@ const AmountField = forwardRef((_, ref: any) => {
const minAllowedAmount = CalculateMinAllowedAmount(values, networks, currencies);
const maxAllowedAmount = CalculateMaxAllowedAmount(values, networks);

const placeholder = currency ? `${minAllowedAmount} - ${maxAllowedAmount}` : '0.01234'
const placeholder = (currency && from && to) ? `${minAllowedAmount} - ${maxAllowedAmount}` : '0.01234'
const step = 1 / Math.pow(10, currency?.precision)
const amountRef = useRef(ref)

Expand Down
6 changes: 2 additions & 4 deletions components/themeWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ export default function ({ hideNavbar, children }: Props) {
const { addressSource } = useQueryState()

useEffect(() => {
if (addressSource) {
window.document.body.className = addressSource
}
if (addressSource) window.document.body.className = addressSource

return () => { window.document.body.className = '' }
}, [addressSource])

return <div className={` ${addressSource} styled-scroll`}>
return <div className='styled-scroll'>
<div className="invisible imxMarketplace synquote"></div>
<main className="styled-scroll">
<div className="min-h-screen overflow-hidden relative font-robo">
Expand Down
4 changes: 2 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function App({ Component, pageProps }) {
})

const theme = darkTheme({
accentColor: '#E42575',
accentColor: 'rgb(var(--colors-primary-500))',
accentColorForeground: 'white',
borderRadius: 'small',
fontStack: 'system',
overlayBlur: 'small',
})

theme.colors.modalBackground = '#0e1426'
theme.colors.modalBackground = 'rgb(var(--colors-secondary-900))'

const router = useRouter()
return (
Expand Down

0 comments on commit d84dc19

Please sign in to comment.