mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
refactor(dashboard): refactor list components
This commit is contained in:
parent
b47694edc1
commit
2e69de1b1b
7 changed files with 495 additions and 744 deletions
|
|
@ -4,8 +4,7 @@
|
|||
import { onMount } from 'svelte';
|
||||
|
||||
import SystemMain from '../../lib/system/Main.svelte';
|
||||
import MemberList from '../../lib/member/List.svelte';
|
||||
import GroupList from '../../lib/group/List.svelte';
|
||||
import List from '../../lib/list/List.svelte';
|
||||
|
||||
import { System } from '../../api/types';
|
||||
import api from '../../api';
|
||||
|
|
@ -72,10 +71,10 @@
|
|||
<SystemMain bind:user isPublic={true} />
|
||||
</TabPane>
|
||||
<TabPane tabId="members" tab="Members" active={tabPane === "members"}>
|
||||
<MemberList bind:list={members} isPublic={true} />
|
||||
<List members={members} groups={groups} isPublic={true} itemType={"member"} />
|
||||
</TabPane>
|
||||
<TabPane tabId="groups" tab="Groups" active={tabPane === "groups"}>
|
||||
<GroupList bind:members={members} bind:list={groups} isPublic={true}/>
|
||||
<List members={members} groups={groups} isPublic={true} itemType={"group"} />
|
||||
</TabPane>
|
||||
</TabContent>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue