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/UserPage.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/UserPage.js')
-rw-r--r-- | modern/src/UserPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/UserPage.js b/modern/src/UserPage.js index da8ba1b6..4b58ba81 100644 --- a/modern/src/UserPage.js +++ b/modern/src/UserPage.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 UserPage = () => { const [item, setItem] = useState(); @@ -20,7 +20,7 @@ const UserPage = () => { }; return ( - <EditPage endpoint="users" setItem={setItem} getItem={getItem}> + <EditItemView endpoint="users" setItem={setItem} getItem={getItem}> {item && <> <TextField @@ -46,7 +46,7 @@ const UserPage = () => { variant="filled" /> </> } - </EditPage> + </EditItemView> ); } |