feat: unauthenticated tab
This commit is contained in:
@@ -32,6 +32,7 @@ import {
|
||||
projectsRef,
|
||||
usersRef,
|
||||
} from "../../config/firebase";
|
||||
import { ensureAuthenticated } from "../../utils/authRedirect";
|
||||
import useDataFromRef from "../../hooks/useDataFromRef";
|
||||
import useTrackController from "../../hooks/useTrackController";
|
||||
import usePlayer from "../../hooks/usePlayer";
|
||||
@@ -1001,7 +1002,8 @@ const MusicDetails = ({ route }) => {
|
||||
</PressableScale>
|
||||
<Pressable
|
||||
onPress={async () => {
|
||||
if (!projectId || !currentUID) return;
|
||||
if (!projectId) return;
|
||||
if (!ensureAuthenticated(currentUID)) return;
|
||||
const next = !fav;
|
||||
setFav(next);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user