mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 18:45:36 +01:00
Updated add team website form.
This commit is contained in:
parent
c990459238
commit
a14e11bae2
18 changed files with 149 additions and 129 deletions
|
|
@ -5,7 +5,7 @@ import DataTable from 'components/common/DataTable';
|
|||
|
||||
export function TeamMembers({ teamId, readOnly }) {
|
||||
const { get } = useApi();
|
||||
const { getProps } = useFilterQuery(
|
||||
const queryResult = useFilterQuery(
|
||||
['team:users', teamId],
|
||||
params => {
|
||||
return get(`/teams/${teamId}/users`, {
|
||||
|
|
@ -17,7 +17,7 @@ export function TeamMembers({ teamId, readOnly }) {
|
|||
|
||||
return (
|
||||
<>
|
||||
<DataTable {...getProps()}>
|
||||
<DataTable queryResult={queryResult}>
|
||||
{({ data }) => <TeamMembersTable data={data} readOnly={readOnly} />}
|
||||
</DataTable>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue