mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Removed SettingsContext. Added hostUrl prop.
This commit is contained in:
parent
fec81695e8
commit
1a70350936
6 changed files with 23 additions and 48 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { Button, Icon, Text, Modal, Icons, ModalTrigger, useToasts } from 'react-basics';
|
||||
import UserAddForm from './UserAddForm';
|
||||
import { useMessages } from 'components/hooks';
|
||||
import { setValue } from 'store/cache';
|
||||
import { touch } from 'store/cache';
|
||||
|
||||
export function UserAddButton({ onSave }: { onSave?: () => void }) {
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
|
|
@ -9,7 +9,7 @@ export function UserAddButton({ onSave }: { onSave?: () => void }) {
|
|||
|
||||
const handleSave = () => {
|
||||
showToast({ message: formatMessage(messages.saved), variant: 'success' });
|
||||
setValue('users', Date.now());
|
||||
touch('users');
|
||||
onSave?.();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue