diff --git a/new-lamassu-admin/src/components/LogsDownloaderPopper.js b/new-lamassu-admin/src/components/LogsDownloaderPopper.js index 37112c92..5dc86a9a 100644 --- a/new-lamassu-admin/src/components/LogsDownloaderPopper.js +++ b/new-lamassu-admin/src/components/LogsDownloaderPopper.js @@ -12,7 +12,7 @@ import { ReactComponent as DownloadInverseIcon } from 'src/styling/icons/button/ import { ReactComponent as Download } from 'src/styling/icons/button/download/zodiac.svg' import { primaryColor, offColor, zircon } from 'src/styling/variables' -import Popper from './Popper' +import Tooltip from './Tooltip' import DateRangePicker from './date-range-picker/DateRangePicker' import { RadioGroup } from './inputs' import typographyStyles from './typography/styles' @@ -132,7 +132,6 @@ const RANGE = 'range' const LogsDownloaderPopover = ({ name, query, args, title, getLogs }) => { const [selectedRadio, setSelectedRadio] = useState(ALL) const [range, setRange] = useState({ from: null, until: null }) - const [anchorEl, setAnchorEl] = useState(null) const [fetchLogs] = useLazyQuery(query, { onCompleted: data => createLogsFile(getLogs(data), range) }) @@ -198,68 +197,57 @@ const LogsDownloaderPopover = ({ name, query, args, title, getLogs }) => { ) } - const handleOpenRangePicker = event => { - setAnchorEl(anchorEl ? null : event.currentTarget) - } - const radioButtonOptions = [ { display: 'All logs', code: ALL }, { display: 'Date range', code: RANGE } ] - const open = Boolean(anchorEl) - const id = open ? 'date-range-popover' : undefined - return ( <> - - -
-
{title}
-
- +
{title}
+
+ +
+ {selectedRadio === RANGE && ( +
+
+ {range && ( + <> + From +
+ +
+ To + + )} +
+
- {selectedRadio === RANGE && ( -
-
- {range && ( - <> - From -
- -
- To - - )} -
- -
- )} -
- downloadLogs(range, args, fetchLogs)}> - Download - -
+ )} +
+ downloadLogs(range, args, fetchLogs)}> + Download +
- + ) } diff --git a/new-lamassu-admin/src/pages/Cashout/Cashout.js b/new-lamassu-admin/src/pages/Cashout/Cashout.js index ac4db035..94b7315f 100644 --- a/new-lamassu-admin/src/pages/Cashout/Cashout.js +++ b/new-lamassu-admin/src/pages/Cashout/Cashout.js @@ -5,6 +5,7 @@ import * as R from 'ramda' import React, { useState } from 'react' import Tooltip from 'src/components/Tooltip' +import { IconButton } from 'src/components/buttons' import { NamespacedTable as EditableTable } from 'src/components/editableTable' import { Switch } from 'src/components/inputs' import TitleSection from 'src/components/layout/TitleSection' @@ -89,7 +90,7 @@ const CashOut = ({ name: SCREEN_KEY }) => { {fudgeFactorActive ? 'On' : 'Off'} - +

Automatically accept customer deposits as complete if their received amount is 10 crypto atoms or less.