Fix: remove unneeded fragments

This commit is contained in:
Cesar 2020-12-29 14:23:35 +00:00 committed by Josh Harvey
parent 6b6d52d7b0
commit c7a01f840f
5 changed files with 493 additions and 412 deletions

View file

@ -240,6 +240,8 @@ const typeDefs = gql`
created: Date
age: Float
deviceTime: Date
}
type Rate {
code: String
name: String

View file

@ -43,9 +43,8 @@ const RightSide = () => {
}
return (
<>
<Grid item xs={6}>
{/* <CollapsibleCard
<Grid item xs={6}>
{/* <CollapsibleCard
className={classes.alertsCard}
state={alertsSize}
shrunkComponent={
@ -64,26 +63,25 @@ const RightSide = () => {
size={alertsSize}
/>
</CollapsibleCard> */}
<CollapsibleCard
state={systemStatusSize}
shrunkComponent={
<ShrunkCard
title={'System status'}
buttonName={'Show machines'}
onUnshrink={onReset}
/>
}>
<SystemStatus
onExpand={() => {
setSystemStatusSize(cardState.EXPANDED)
// setAlertsSize(cardState.SHRUNK)
}}
onReset={onReset}
size={systemStatusSize}
<CollapsibleCard
state={systemStatusSize}
shrunkComponent={
<ShrunkCard
title={'System status'}
buttonName={'Show machines'}
onUnshrink={onReset}
/>
</CollapsibleCard>
</Grid>
</>
}>
<SystemStatus
onExpand={() => {
setSystemStatusSize(cardState.EXPANDED)
// setAlertsSize(cardState.SHRUNK)
}}
onReset={onReset}
size={systemStatusSize}
/>
</CollapsibleCard>
</Grid>
)
}

View file

@ -155,19 +155,17 @@ const Transactions = ({ id }) => {
}
return (
<>
<DataTable
extraHeight={extraHeight}
onClick={handleClick}
loading={loading || id === null}
emptyText="No transactions so far"
elements={elements}
// need to splice because back end query could return double NUM_LOG_RESULTS because it doesnt merge the txIn and the txOut results before applying the limit
data={R.path(['transactions'])(txResponse)} // .splice(0,NUM_LOG_RESULTS)}
Details={DetailsRow}
expandable
/>
</>
<DataTable
extraHeight={extraHeight}
onClick={handleClick}
loading={loading || id === null}
emptyText="No transactions so far"
elements={elements}
// need to splice because back end query could return double NUM_LOG_RESULTS because it doesnt merge the txIn and the txOut results before applying the limit
data={R.path(['transactions'])(txResponse)} // .splice(0,NUM_LOG_RESULTS)}
Details={DetailsRow}
expandable
/>
)
}

833
package-lock.json generated

File diff suppressed because it is too large Load diff