File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed
Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 1616 new-list-name : Neue Liste
1717 settings :
1818 title : Einstellungen
19+ name :
20+ label : Name
1921layout :
2022 side-nav :
2123 lists :
Original file line number Diff line number Diff line change 11import { List } from '@/services/api/lists/lists.types' ;
22import { intl } from '@spuxx/js-utils' ;
3- import { Container } from '@spuxx/solid' ;
3+ import { Accordion , Input } from '@spuxx/solid' ;
44import { Component } from 'solid-js' ;
55
66interface Props {
77 list : List ;
88}
99
1010export const ListSettings : Component < Props > = ( props ) => {
11+ // const p = {};
12+
1113 return (
12- < Container >
13- { intl ( 'lists.component.settings.title' ) }
14- { props . list . name }
15- </ Container >
14+ < Accordion >
15+ < Accordion . Item
16+ title = { intl ( 'lists.component.settings.title' ) }
17+ icon = "mdi:gear"
18+ >
19+ < Input
20+ label = { intl ( 'lists.component.settings.name.label' ) }
21+ size = "full"
22+ // value={props.list.name}
23+ />
24+ </ Accordion . Item >
25+ </ Accordion >
1626 ) ;
1727} ;
Original file line number Diff line number Diff line change 11import { List } from '@/services/api/lists/lists.types' ;
2- import { Container , Heading , Icon } from '@spuxx/solid' ;
2+ import { Heading , Icon } from '@spuxx/solid' ;
33import { Component } from 'solid-js' ;
44import { ListItems } from './list-items.component' ;
55import { ListSettings } from './list-settings.component' ;
@@ -10,13 +10,13 @@ interface Props {
1010
1111export const ListView : Component < Props > = ( props ) => {
1212 return (
13- < Container class = "text-center" >
13+ < >
1414 < Heading level = { 2 } >
1515 < Icon icon = { props . list . icon } />
1616 { props . list . name }
1717 </ Heading >
1818 < ListItems list = { props . list } />
1919 < ListSettings list = { props . list } />
20- </ Container >
20+ </ >
2121 ) ;
2222} ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const ListPage: Component = () => {
2323 createEffect ( ( ) => { } ) ;
2424
2525 return (
26- < Container class = "text-center m-auto" >
26+ < Container class = "text-center m-auto w-2xl " >
2727 < Show when = { status ( ) === HttpRequestStatus . pending } >
2828 { /* TODO: Move to Loader component in @spuxx/solid? */ }
2929 < Icon icon = "svg-spinners:ring-resize" class = "text-2xl" />
You can’t perform that action at this time.
0 commit comments