mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Added new react basics provider.
This commit is contained in:
parent
64c6d73b77
commit
6ee27affc4
13 changed files with 59 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
import { Breadcrumbs, Item, Tabs, useToast } from 'react-basics';
|
||||
import { Breadcrumbs, Item, Tabs, useToasts } from 'react-basics';
|
||||
import Link from 'next/link';
|
||||
import UserEditForm from 'components/pages/settings/users//UserEditForm';
|
||||
import Page from 'components/layout/Page';
|
||||
|
|
@ -14,7 +14,7 @@ export function UserSettings({ userId }) {
|
|||
const [values, setValues] = useState(null);
|
||||
const [tab, setTab] = useState('details');
|
||||
const { get, useQuery } = useApi();
|
||||
const { toast, showToast } = useToast();
|
||||
const { showToast } = useToasts();
|
||||
const { data, isLoading } = useQuery(
|
||||
['user', userId],
|
||||
() => {
|
||||
|
|
@ -44,7 +44,6 @@ export function UserSettings({ userId }) {
|
|||
|
||||
return (
|
||||
<Page loading={isLoading || !values}>
|
||||
{toast}
|
||||
<PageHeader
|
||||
title={
|
||||
<Breadcrumbs>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue