Popravljene TypeScript TS6133 napake (neuporabljene spremenljivke)
Build and Deploy / build-and-deploy (push) Failing after 27s
Details
Build and Deploy / build-and-deploy (push) Failing after 27s
Details
This commit is contained in:
parent
912f838288
commit
6f0d2445da
|
|
@ -61,7 +61,7 @@ const Reviews: React.FC<ReviewsProps> = ({
|
|||
</div>
|
||||
<div className="flex items-center text-xs text-black">
|
||||
<span className="font-medium mr-2">Kategorije:</span>
|
||||
{Object.entries(ratingCategories).map(([category, rating], index) => (
|
||||
{Object.entries(ratingCategories).map(([category, rating]) => (
|
||||
<span key={category} className="opacity-70 mr-3">
|
||||
{category} {rating}
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Restaurant, Category, RestaurantDetail, MenuSection, TimeSlot } from '../types';
|
||||
import { Restaurant, Category, RestaurantDetail, TimeSlot } from '../types';
|
||||
|
||||
export const restaurants: Restaurant[] = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { upcomingReservationsGroups, pastReservationsGroups } from '../data/rese
|
|||
|
||||
const ReservationsHistoryPage: React.FC = () => {
|
||||
const [activeTab, setActiveTab] = useState<'upcoming' | 'past'>('upcoming');
|
||||
const [showEmptyState, setShowEmptyState] = useState(false); // Za demo namene je privzeto false
|
||||
const [showEmptyState, _] = useState(false); // Za demo namene je privzeto false
|
||||
const { navigateTo } = useContext(NavigationContext);
|
||||
|
||||
const handleTabChange = (tab: 'upcoming' | 'past') => {
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@ import SearchNavBar from '../components/SearchNavBar';
|
|||
import AdvancedSearchBar from '../components/AdvancedSearchBar';
|
||||
import SearchFilters from '../components/SearchFilters';
|
||||
import Footer from '../components/Footer';
|
||||
import { Category } from '../types';
|
||||
import { categories } from '../data/mockData';
|
||||
|
||||
const SearchPage: React.FC = () => {
|
||||
const [activeNavItem, setActiveNavItem] = useState('search');
|
||||
const [query, setQuery] = useState<string>('');
|
||||
const [activeFilters, setActiveFilters] = useState<{
|
||||
const [_, setActiveFilters] = useState<{
|
||||
categories: number[];
|
||||
rating: number | null;
|
||||
distance: number | null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue