mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
Add functionality to leave team
This commit is contained in:
parent
d7f32e6987
commit
0016a9f4e1
4 changed files with 23 additions and 28 deletions
|
|
@ -2,6 +2,7 @@ import { Button, Icon, Modal, ModalTrigger, Text, useToasts } from 'react-basics
|
|||
import Icons from 'components/icons';
|
||||
import { useMessages } from 'components/hooks';
|
||||
import TeamJoinForm from './TeamJoinForm';
|
||||
import { touch } from 'store/modified';
|
||||
|
||||
export function TeamsJoinButton() {
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
|
|
@ -9,6 +10,7 @@ export function TeamsJoinButton() {
|
|||
|
||||
const handleJoin = () => {
|
||||
showToast({ message: formatMessage(messages.saved), variant: 'success' });
|
||||
touch('teams');
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue