Skip to content

Commit d9fb47d

Browse files
committed
Naprawiono Błędy kompilacji TypeScript
- Dodano import useMemo do EditUser.tsx - Przedrostek nieużywanego parametru zdarzenia w authStore.ts należy dodać z podkreśleniem - Użycie vitest/config zamiast vite dla defineConfig w celu obsługi konfiguracji testowej - Naprawiono błędy kompilacji TypeScript
1 parent a2ee600 commit d9fb47d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/users/EditUser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from 'react';
1+
import { useState, useEffect, useMemo } from 'react';
22
import { useUsersStore } from '../../store/usersStore';
33
import type { User } from '../../types/user';
44

src/store/authStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const useAuthStore = create<AuthStore>((set) => ({
3939
}
4040

4141
// Nasłuchuj zmian w autentykacji
42-
supabase.auth.onAuthStateChange(async (event, session) => {
42+
supabase.auth.onAuthStateChange(async (_event, session) => {
4343
if (session) {
4444
const { data: profile, error } = await supabase
4545
.from('users')

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// <reference types="vitest" />
2-
import { defineConfig } from 'vite'
2+
import { defineConfig } from 'vitest/config'
33
import react from '@vitejs/plugin-react'
44

55
// https://vite.dev/config/

0 commit comments

Comments
 (0)