types import error fixed

This commit is contained in:
dimitar committed 2026-02-04 20:37:46 +01:00
1 parent c6e602d354
commit cb2355adcd
8 files changed
+39 -8

No files matched your search

@@ -1,4 +1,4 @@
import React from 'react';
import { useAuth } from '../../../contexts/AuthContext';
import { useReactionCounts, useUserReaction, useAddReaction } from '../../../queries/comments';
import { Button } from '../../ui/button';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import { Link } from '@tanstack/react-router';
import { useAuth } from '../../contexts/AuthContext';
import { Button } from '../ui/button';
+1 -1
View File
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';
import { LoginForm } from '../auth/LoginForm';
import { RegisterForm } from '../auth/RegisterForm';
import { useAuth } from '../../contexts/AuthContext';
+3 -2
View File
@@ -1,7 +1,8 @@
/* eslint-disable react-refresh/only-export-components */
import React, { createContext, useContext, useState, useEffect, ReactNode } from 'react';
import { createContext, useContext, useState, useEffect } from 'react';
import type { ReactNode } from 'react';
import * as api from '../lib/api';
import { User } from '@/types';
import type { User } from '@/types';
interface AuthContextType {
user: User | null;
+1 -1
View File
@@ -13,7 +13,7 @@ export function useCreateComment() {
return useMutation({
mutationFn: api.createComment,
onSuccess: (data, variables) => {
onSuccess: (_data, variables) => {
queryClient.invalidateQueries({
queryKey: ['comments', { articleId: variables.articleId }]
});
+1 -1
View File
@@ -1,4 +1,4 @@
import { createRootRoute, createRoute, createRouter, Outlet } from '@tanstack/react-router'
import { createRootRoute, createRoute, createRouter, Outlet, Link } from '@tanstack/react-router'
import { ArticleTicker } from './components/ArticleTicker'
import { ArticlesComponent } from './components/routes/ArticlesComponent'
import { ArticleDetailComponent } from './components/routes/ArticleDetailComponent'
+1 -1
View File
@@ -1 +1 @@
export * from './auth';
export type { User, UserRole, LoginDto, RegisterDto, AuthResponse, ApiError } from './auth';