From c219cf9f39c5b4c2f6ee9749cfa849ae3695fefe Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Fri, 7 Jun 2024 11:04:33 -0400 Subject: [PATCH] lint --- src/pages/Invitation.tsx | 4 +--- src/pages/RenameTransaction.tsx | 4 +--- src/pages/card.tsx | 2 -- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pages/Invitation.tsx b/src/pages/Invitation.tsx index 377c45a..f5cef76 100644 --- a/src/pages/Invitation.tsx +++ b/src/pages/Invitation.tsx @@ -1,7 +1,7 @@ import { Ionicons } from "@expo/vector-icons"; import { useTheme } from "@react-navigation/native"; import { NativeStackScreenProps } from "@react-navigation/native-stack"; -import { useContext, useEffect } from "react"; +import { useEffect } from "react"; import { View, Text, @@ -13,7 +13,6 @@ import { import useSWR, { useSWRConfig } from "swr"; import useSWRMutation from "swr/mutation"; -import AuthContext from "../auth"; import Button from "../components/Button"; import useClient from "../lib/client"; import { StackParamList } from "../lib/NavigatorParamList"; @@ -29,7 +28,6 @@ export default function InvitationPage({ params: { inviteId, invitation: _invitation }, }, }: Props) { - const { token } = useContext(AuthContext); const hcb = useClient(); const { data: invitation } = useSWR( diff --git a/src/pages/RenameTransaction.tsx b/src/pages/RenameTransaction.tsx index a0f73c2..e4d481a 100644 --- a/src/pages/RenameTransaction.tsx +++ b/src/pages/RenameTransaction.tsx @@ -1,6 +1,6 @@ import { useTheme } from "@react-navigation/native"; import { NativeStackScreenProps } from "@react-navigation/native-stack"; -import { useContext, useState } from "react"; +import { useState } from "react"; import { ActivityIndicator, StatusBar, @@ -12,7 +12,6 @@ import useSWR, { useSWRConfig } from "swr"; import { unstable_serialize } from "swr/infinite"; import useSWRMutation from "swr/mutation"; -import AuthContext from "../auth"; import useClient from "../lib/client"; import { StackParamList } from "../lib/NavigatorParamList"; import { getKey } from "../lib/organization/useTransactions"; @@ -27,7 +26,6 @@ export default function RenameTransactionPage({ }, navigation, }: Props) { - const { token } = useContext(AuthContext); const { colors: themeColors } = useTheme(); const { mutate } = useSWRConfig(); const hcb = useClient(); diff --git a/src/pages/card.tsx b/src/pages/card.tsx index 302f4f3..ecb6992 100644 --- a/src/pages/card.tsx +++ b/src/pages/card.tsx @@ -2,7 +2,6 @@ import { useBottomTabBarHeight } from "@react-navigation/bottom-tabs"; import { useTheme } from "@react-navigation/native"; import { NativeStackScreenProps } from "@react-navigation/native-stack"; import * as Haptics from "expo-haptics"; -import { useContext } from "react"; import { ScrollView, View, @@ -13,7 +12,6 @@ import { import useSWR, { useSWRConfig } from "swr"; import useSWRMutation from "swr/mutation"; -import AuthContext from "../auth"; import Button from "../components/Button"; import PaymentCard from "../components/PaymentCard"; import Transaction from "../components/Transaction";