mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-11 17:28:05 +02:00
fix(build): restore missing imports and interface in Sidebar
This commit is contained in:
1 parent
ccaddce4bb
commit
026ced7199
1 file changed
+10
-3
@@ -1,6 +1,13 @@
|
|||||||
|
import { useState } from 'react';
|
||||||
|
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||||
|
import { feedsApi } from '../api/feeds';
|
||||||
import { articlesApi } from '../api/articles';
|
import { articlesApi } from '../api/articles';
|
||||||
|
import { AddFeedModal } from './AddFeedModal';
|
||||||
|
|
||||||
// ... (existing imports)
|
interface SidebarProps {
|
||||||
|
onSelectFeed: (feedId: string | null) => void;
|
||||||
|
selectedFeedId: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) {
|
export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) {
|
||||||
const [isAddModalOpen, setIsAddModalOpen] = useState(false);
|
const [isAddModalOpen, setIsAddModalOpen] = useState(false);
|
||||||
@@ -54,8 +61,8 @@ export function Sidebar({ onSelectFeed, selectedFeedId }: SidebarProps) {
|
|||||||
onClick={() => markAllReadMutation.mutate()}
|
onClick={() => markAllReadMutation.mutate()}
|
||||||
disabled={markAllReadMutation.isPending}
|
disabled={markAllReadMutation.isPending}
|
||||||
className={`w-full group flex items-center justify-center space-x-3 px-4 py-3 rounded-lg transition-all duration-300 border ${markAllReadMutation.isPending
|
className={`w-full group flex items-center justify-center space-x-3 px-4 py-3 rounded-lg transition-all duration-300 border ${markAllReadMutation.isPending
|
||||||
? 'bg-gold/5 border-gold/10 text-gold/50 cursor-wait'
|
? 'bg-gold/5 border-gold/10 text-gold/50 cursor-wait'
|
||||||
: 'bg-transparent border-gold/20 text-paper-muted hover:text-gold hover:bg-gold/5 hover:border-gold/40'
|
: 'bg-transparent border-gold/20 text-paper-muted hover:text-gold hover:bg-gold/5 hover:border-gold/40'
|
||||||
}`}
|
}`}
|
||||||
title="Tout marquer comme lu"
|
title="Tout marquer comme lu"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user