Skip to content

Commit

Permalink
Rename renderConfigs -> renderEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Jan 9, 2019
1 parent 91e9b2e commit 7c7de43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gui/src/components/KeyValueList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import TableCell from '@material-ui/core/TableCell'
import TableHead from '@material-ui/core/TableHead'
import TableRow from '@material-ui/core/TableRow'
import Typography from '@material-ui/core/Typography'
import CardContent from '@material-ui/core/CardContent'
import Divider from '@material-ui/core/Divider'
import CardTitle from 'components/Cards/Title'

const renderFetching = () => (
Expand All @@ -25,7 +23,7 @@ const renderError = error => (
</TableRow>
)

const renderConfigs = entries => (
const renderEntries = entries => (
entries.map(([k, v]) => (
<TableRow key={k}>
<TableCell>
Expand All @@ -52,7 +50,7 @@ const renderBody = (entries, error) => {
} else if (entries.length === 0) {
return renderFetching()
} else {
return renderConfigs(entries)
return renderEntries(entries)
}
}

Expand Down

0 comments on commit 7c7de43

Please sign in to comment.