Skip to content

Commit

Permalink
reset plan index
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Mar 9, 2024
1 parent 7755f5c commit 22981a3
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions app/content/plan/index.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,14 @@
import { signOut as signoutFireBase } from "firebase/auth";
import { Pressable } from "react-native";
import { PaperProvider, Text } from "react-native-paper";
import { SafeAreaView } from "react-native-safe-area-context";
import { currentAuthContext } from "~/context/Auth";
import { auth } from "~/firebaseConfig";

//This is for the list of drills
export default function Index() {
const { signOut } = currentAuthContext();
async function handleSignOut() {
signoutFireBase(auth)
.then(() => {
// Sign-out successful.
})
.catch((e) => {
alert(e);
console.log(e);
});
signOut();
}
return (
<PaperProvider>
<SafeAreaView
style={{ flex: 1, justifyContent: "center", alignItems: "center" }}
>
<Text>Plan Index</Text>
<Pressable onPress={handleSignOut}>
<Text
style={{
textAlign: "center",
marginTop: 20,
fontSize: 20,
color: "#F24E1E",
}}
>
{" "}
Sign Out{" "}
</Text>
</Pressable>
</SafeAreaView>
</PaperProvider>
);
Expand Down

0 comments on commit 22981a3

Please sign in to comment.