diff --git a/src/components/Group/GroupMemberCard.tsx b/src/components/Group/GroupMemberCard.tsx
index 4b3f4761..e315feee 100644
--- a/src/components/Group/GroupMemberCard.tsx
+++ b/src/components/Group/GroupMemberCard.tsx
@@ -52,7 +52,7 @@ export const GroupMembers = (props: GroupMembersProps) => {
return ;
}
- const handleDelete = (id: string) => {
+ const handleDelete = () => {
if (driver.carpoolId) {
deleteGroup({ groupId: driver.carpoolId });
} else {
diff --git a/src/components/GroupPage.tsx b/src/components/GroupPage.tsx
index a4f40de9..f3e4137d 100644
--- a/src/components/GroupPage.tsx
+++ b/src/components/GroupPage.tsx
@@ -62,16 +62,17 @@ interface NoGroupInfoProps {
onClose: () => void;
}
-const NoGroupInfo = ({ role, onClose }: NoGroupInfoProps) => {
+const NoGroupInfo = ({ role }: NoGroupInfoProps) => {
const utils = trpc.useContext();
const { data: user } = trpc.user.me.useQuery();
const [groupMessage, setGroupMessage] = useState(user?.groupMessage ?? "");
- const { mutate: updateUserMessage } = trpc.user.groups.updateUserMessage.useMutation({
- onSuccess: () => {
- // Invalidate and refetch the user.me query
- utils.user.me.invalidate();
- },
- });
+ const { mutate: updateUserMessage } =
+ trpc.user.groups.updateUserMessage.useMutation({
+ onSuccess: () => {
+ // Invalidate and refetch the user.me query
+ utils.user.me.invalidate();
+ },
+ });
useEffect(() => {
if (user?.groupMessage) {
@@ -94,9 +95,13 @@ const NoGroupInfo = ({ role, onClose }: NoGroupInfoProps) => {
) : (
<>
{role === "DRIVER" && (
-
+
- Below, share any information that you would like riders joining you your Carpool to know. You can indicate when you generally like to be leaving your place, what your preferred method of communication is, what your preference is to split gas and what your Carpool vibe will be like.
+ Below, share any information that you would like riders joining
+ you your Carpool to know. You can indicate when you generally
+ like to be leaving your place, what your preferred method of
+ communication is, what your preference is to split gas and what
+ your Carpool vibe will be like.