Refactor: removed default exports.

This commit is contained in:
Mike Cao committed 2025-02-13 22:53:25 -08:00
1 parent cd944e14ce
commit f83a12d6cd
343 files changed
+555 -1046

No files matched your search

@@ -1,7 +1,7 @@
import { useLocale, useLogin, useMessages, useModified } from '@/components/hooks';
import { useRouter } from 'next/navigation';
import { Button, Icon, Icons, Modal, ModalTrigger, Text } from 'react-basics';
import TeamDeleteForm from './TeamLeaveForm';
import { TeamLeaveForm } from './TeamLeaveForm';
export function TeamLeaveButton({ teamId, teamName }: { teamId: string; teamName: string }) {
const { formatMessage, labels } = useMessages();
@@ -25,7 +25,7 @@ export function TeamLeaveButton({ teamId, teamName }: { teamId: string; teamName
</Button>
<Modal title={formatMessage(labels.leaveTeam)}>
{(close: () => void) => (
<TeamDeleteForm
<TeamLeaveForm
teamId={teamId}
userId={user.id}
teamName={teamName}
@@ -37,5 +37,3 @@ export function TeamLeaveButton({ teamId, teamName }: { teamId: string; teamName
</ModalTrigger>
);
}
export default TeamLeaveButton;