fix: cashout empty table image and machine status loading
This commit is contained in:
parent
4b2c3a3b47
commit
04c8213430
2 changed files with 3 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ const CashOut = ({ name: SCREEN_KEY }) => {
|
|||
disableRowEdit={R.compose(R.not, R.path(['active']))}
|
||||
elements={getElements(machines, locale)}
|
||||
/>
|
||||
{R.isEmpty(config) && <EmptyTable message="No machines so far" />}
|
||||
{R.isEmpty(machines) && <EmptyTable message="No machines so far" />}
|
||||
{wizard && (
|
||||
<Wizard
|
||||
machine={R.find(R.propEq('deviceId', wizard))(machines)}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const MachineStatus = () => {
|
|||
const classes = useStyles()
|
||||
const { state } = useLocation()
|
||||
const addedMachineId = state?.id
|
||||
const { data: machinesResponse, refetch } = useQuery(GET_MACHINES)
|
||||
const { data: machinesResponse, refetch, loading } = useQuery(GET_MACHINES)
|
||||
|
||||
const elements = [
|
||||
{
|
||||
|
|
@ -103,6 +103,7 @@ const MachineStatus = () => {
|
|||
</div>
|
||||
</div>
|
||||
<DataTable
|
||||
loading={loading}
|
||||
elements={elements}
|
||||
data={machines}
|
||||
Details={InnerMachineDetailsRow}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue