mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-11 17:26:20 +02:00
feat: add Trending and AddPodcast pages for podcast discovery and subscription management
This commit is contained in:
1 parent
f48789dfde
commit
2d5e90a441
2 files changed
+4
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useState } from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { discoveryService, DiscoveryPodcast } from '../services/discoveryService';
|
||||
import { podcastService } from '../services/podcastService';
|
||||
@@ -16,7 +16,7 @@ export default function AddPodcast() {
|
||||
const [rssError, setRssError] = useState<string | null>(null);
|
||||
const [rssSuccess, setRssSuccess] = useState<string | null>(null);
|
||||
|
||||
useState(() => {
|
||||
useEffect(() => {
|
||||
const loadUser = async () => {
|
||||
try {
|
||||
const response = await authService.getMe();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useState } from 'react';
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { discoveryService, DiscoveryPodcast } from '../services/discoveryService';
|
||||
import Header from '../components/Header';
|
||||
@@ -10,7 +10,7 @@ export default function Trending() {
|
||||
const [user, setUser] = useState<any>(null);
|
||||
const [subscribingId, setSubscribingId] = useState<string | null>(null);
|
||||
|
||||
useState(() => {
|
||||
useEffect(() => {
|
||||
const loadUser = async () => {
|
||||
try {
|
||||
const response = await authService.getMe();
|
||||
|
||||
Reference in new issue
Block a user