From a3a069f335c8e18413a264b36402489b5880e7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Fri, 29 Oct 2021 12:52:46 +0100 Subject: [PATCH] chore: remove dead code --- .../src/components/inputs/cashbox/Cashbox.js | 81 +------------------ 1 file changed, 1 insertion(+), 80 deletions(-) diff --git a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js index 6cc6864e..f41ddf82 100644 --- a/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js +++ b/new-lamassu-admin/src/components/inputs/cashbox/Cashbox.js @@ -3,11 +3,8 @@ import classnames from 'classnames' import React from 'react' import Chip from 'src/components/Chip' -import { Link } from 'src/components/buttons' import { Info2, Label1, Label2 } from 'src/components/typography' -import TextInputFormik from '../base/TextInput' - import { cashboxStyles, gridStyles } from './Cashbox.styles' const cashboxClasses = makeStyles(cashboxStyles) @@ -72,44 +69,6 @@ const CashIn = ({ currency, notes, total }) => { ) } -const CashInFormik = ({ - capacity = 1000, - onEmpty, - field: { - value: { notes, deviceId } - }, - form: { setFieldValue } -}) => { - const classes = gridClasses() - - return ( - <> -
-
- -
-
-
- { - onEmpty({ - variables: { - deviceId, - action: 'emptyCashInBills' - } - }).then(() => setFieldValue('cashin.notes', 0)) - }} - className={classes.link} - color={'primary'}> - Empty - -
-
-
- - ) -} - const CashOut = ({ capacity = 500, denomination = 0, @@ -154,42 +113,4 @@ const CashOut = ({ ) } -const CashOutFormik = ({ capacity = 500, ...props }) => { - const { - name, - onChange, - onBlur, - value: { notes } - } = props.field - const { touched, errors } = props.form - - const error = !!(touched[name] && errors[name]) - - const percent = (100 * notes) / capacity - const classes = gridClasses() - - return ( - <> -
-
- -
-
-
- -
-
-
- - ) -} - -export { Cashbox, CashIn, CashInFormik, CashOut, CashOutFormik } +export { Cashbox, CashIn, CashOut }