diff --git a/web-ui/web-react/src/App.js b/web-ui/web-react/src/App.js index c605f85d..22936c88 100644 --- a/web-ui/web-react/src/App.js +++ b/web-ui/web-react/src/App.js @@ -28,6 +28,7 @@ import TreeDemo from './components/TreeDemo'; import InvalidStateDemo from './components/InvalidStateDemo'; import BlocksDemo from './components/BlocksDemo'; import IconsDemo from './components/IconsDemo'; +import FormAdminSistema from './components/FormAdminSistema'; import Crud from './pages/Crud'; import EmptyPage from './pages/EmptyPage'; @@ -159,9 +160,10 @@ const App = () => { const menu = [ { label: 'Home', - items: [{ - label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' - }] + items: [ + {label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/'}, + {label: 'Registro admin sistema', icon: 'pi pi-fw pi-id-card', to: '/formAdminSistema'} + ] }, { label: 'UI Components', icon: 'pi pi-fw pi-sitemap', @@ -320,6 +322,7 @@ const App = () => { + diff --git a/web-ui/web-react/src/components/FormAdminSistema.js b/web-ui/web-react/src/components/FormAdminSistema.js new file mode 100644 index 00000000..45b9ec55 --- /dev/null +++ b/web-ui/web-react/src/components/FormAdminSistema.js @@ -0,0 +1,56 @@ +import React, { useState } from 'react'; +import { InputText } from 'primereact/inputtext'; +import { Button } from 'primereact/button'; +import { InputTextarea } from 'primereact/inputtextarea'; +import { Dropdown } from 'primereact/dropdown'; + +const FormAdminSistema = () => { + const [dropdownItem, setDropdownItem] = useState(null); + const dropdownItems = [ + { name: 'Option 1', code: 'Option 1' }, + { name: 'Option 2', code: 'Option 2' }, + { name: 'Option 3', code: 'Option 3' } + ]; + + return ( +
+
+
+
Advanced
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + setDropdownItem(e.value)} options={dropdownItems} optionLabel="name" placeholder="Select One"> +
+
+ + +
+
+
+
+
+ ) +} + +const comparisonFn = function (prevProps, nextProps) { + return prevProps.location.pathname === nextProps.location.pathname; +}; + +export default React.memo(FormAdminSistema, comparisonFn);