diff --git a/src/components/user/User.tsx b/src/components/user/User.tsx index 1f62bad..89e90a6 100644 --- a/src/components/user/User.tsx +++ b/src/components/user/User.tsx @@ -1,5 +1,5 @@ import { createForm } from '@felte/solid'; -import { Component, Index, Match, onMount, Switch } from 'solid-js'; +import { Component, Index, Match, onMount, Show, Switch } from 'solid-js'; import { TextField, Button } from '@kobalte/core'; import reporter from '@felte/reporter-tippy'; import './style.css'; @@ -130,7 +130,8 @@ const User: Component = (props) => { } function addSubscription(index?: number) { - return () => addField(`subscriptions`, { user: '', direction: '' }, index); + return () => + addField(`subscriptions`, { username: '', direction: '' }, index); } console.log({ @@ -141,106 +142,100 @@ const User: Component = (props) => { }); return ( -
- - Mail address - - - Please provide a valid URL - - - - Database - - - - User name - - - - Password - - - - - - - - - - - - - {(_, index) => ( - - - - - - )} - - -
- - UserDirection
- - - - - - - - - -
- - - Save - Delete - - - Create - - - Cancel -
+ <> + +

{userId(data('username'), data('database'))}

+
+
+ + Mail address + + + Please provide a valid URL + + + + Database + + + + User name + + + + Password + + + + + + + + + + + + {(_, index) => ( + + + + + )} + + +
+ + User name
+ + + + + +
+ + + Save + Delete + + + Create + + + Cancel +
+ ); };