mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 22:25:21 +01:00
chore: small fixes
This commit is contained in:
parent
cf117f64e2
commit
8811d22681
3 changed files with 9 additions and 6 deletions
|
@ -176,7 +176,7 @@ export const LoginForm = ({
|
|||
<StyledTitle>Admin:</StyledTitle>
|
||||
<Input
|
||||
placeholder={
|
||||
'HEX Admin macaroon (e.g.: 0201036c6e6402eb01030a100e385f...)'
|
||||
'Base64 Admin macaroon (e.g.: AgEDbG5kAusBAw...)'
|
||||
}
|
||||
onChange={e => setAdmin(e.target.value)}
|
||||
/>
|
||||
|
@ -186,7 +186,7 @@ export const LoginForm = ({
|
|||
<StyledTitle>Readonly:</StyledTitle>
|
||||
<Input
|
||||
placeholder={
|
||||
'HEX Readonly macaroon (e.g.: 0201036c6e6402eb01030a100e385f...)'
|
||||
'Base64 Readonly macaroon (e.g.: AgEDbG5kApoBAw...)'
|
||||
}
|
||||
onChange={e => setRead(e.target.value)}
|
||||
/>
|
||||
|
@ -195,7 +195,7 @@ export const LoginForm = ({
|
|||
<StyledTitle>Certificate:</StyledTitle>
|
||||
<Input
|
||||
placeholder={
|
||||
'HEX TLS Certificate (e.g.: 2d2d2d2d2d424547494e20434552...)'
|
||||
'Base64 TLS Certificate (e.g.: LS0tLS1CRUdJTi...)'
|
||||
}
|
||||
onChange={e => setCert(e.target.value)}
|
||||
/>
|
||||
|
|
|
@ -76,7 +76,6 @@ export const ImagePlace = styled.img`
|
|||
height: auto;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: grey;
|
||||
`;
|
||||
|
||||
export const WrapSingleLine = styled(SingleLine)`
|
||||
|
|
|
@ -20,8 +20,9 @@ import {
|
|||
MultiButton,
|
||||
SingleButton,
|
||||
} from 'components/buttons/multiButton/MultiButton';
|
||||
import { Price } from 'components/price/Price';
|
||||
import { Price, getPrice } from 'components/price/Price';
|
||||
import { mediaWidths } from 'styles/Themes';
|
||||
import { useSettings } from 'context/SettingsContext';
|
||||
|
||||
const ResponsiveWrap = styled(SingleLine)`
|
||||
@media (${mediaWidths.mobile}) {
|
||||
|
@ -40,6 +41,9 @@ const Margin = styled.div`
|
|||
`;
|
||||
|
||||
export const SendOnChainCard = () => {
|
||||
const context = useSettings();
|
||||
const format = getPrice(context);
|
||||
|
||||
const { width } = useSize();
|
||||
const [address, setAddress] = useState('');
|
||||
const [tokens, setTokens] = useState(0);
|
||||
|
@ -71,7 +75,7 @@ export const SendOnChainCard = () => {
|
|||
|
||||
const feeFormat = (amount: number) => {
|
||||
if (type === 'fee' || type === 'none') {
|
||||
return <Price amount={amount} />;
|
||||
return format({ amount });
|
||||
} else {
|
||||
return `${amount} blocks`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue