diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 22:39:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 22:39:04 -0700 |
commit | 37dd8129f8e07d00eb93262210bf1ecd4ce95532 (patch) | |
tree | 80f115342fb4624675856a9164970b81f1f5b263 /modern/src/DevicePage.js | |
parent | 787c9dc0ec684d3524ec060b6422ffbaea5012ac (diff) | |
download | trackermap-web-37dd8129f8e07d00eb93262210bf1ecd4ce95532.tar.gz trackermap-web-37dd8129f8e07d00eb93262210bf1ecd4ce95532.tar.bz2 trackermap-web-37dd8129f8e07d00eb93262210bf1ecd4ce95532.zip |
Refactor collection editing
Diffstat (limited to 'modern/src/DevicePage.js')
-rw-r--r-- | modern/src/DevicePage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/DevicePage.js b/modern/src/DevicePage.js index 14e978ec..7c963b02 100644 --- a/modern/src/DevicePage.js +++ b/modern/src/DevicePage.js @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import TextField from '@material-ui/core/TextField'; import t from './common/localization'; -import EditPage from './EditPage'; +import EditItemView from './EditItemView'; const DevicePage = () => { const [item, setItem] = useState(); @@ -18,7 +18,7 @@ const DevicePage = () => { }; return ( - <EditPage endpoint="devices" setItem={setItem} getItem={getItem}> + <EditItemView endpoint="devices" setItem={setItem} getItem={getItem}> {item && <> <TextField @@ -37,7 +37,7 @@ const DevicePage = () => { variant="filled" /> </> } - </EditPage> + </EditItemView> ); } |