Spaces:
Running
Running
| commit 951b10f7f352b305aeafa9b6cd8ba77c58732650 | |
| Author: Bogmaz <bogmaz1@gmail.com> | |
| Date: Wed May 13 21:52:26 2026 +0200 | |
| fix(frontend): remove unused react imports and fix joyride types | |
| diff --git a/frontend-react/src/components/common/ErrorBoundary.tsx b/frontend-react/src/components/common/ErrorBoundary.tsx | |
| index 4aae92f..a604e9a 100644 | |
| --- a/frontend-react/src/components/common/ErrorBoundary.tsx | |
| +++ b/frontend-react/src/components/common/ErrorBoundary.tsx | |
| -import React, { Component, ErrorInfo, ReactNode } from 'react'; | |
| +import { Component, ErrorInfo, ReactNode } from 'react'; | |
| interface Props { | |
| children: ReactNode; | |
| diff --git a/frontend-react/src/components/common/OnboardingTour.tsx b/frontend-react/src/components/common/OnboardingTour.tsx | |
| index 845044b..92d2262 100644 | |
| --- a/frontend-react/src/components/common/OnboardingTour.tsx | |
| +++ b/frontend-react/src/components/common/OnboardingTour.tsx | |
| -import React, { useState, useEffect } from 'react'; | |
| -import Joyride, { Step, CallBackProps, STATUS } from 'react-joyride'; | |
| +import Joyride, { Step, STATUS } from 'react-joyride'; | |
| interface OnboardingTourProps { | |
| run: boolean; | |
| export const OnboardingTour: React.FC<OnboardingTourProps> = ({ run, setRun, onF | |
| } | |
| }, [steps]); | |
| - const handleJoyrideCallback = (data: CallBackProps) => { | |
| + const handleJoyrideCallback = (data: any) => { | |
| const { status } = data; | |
| const finishedStatuses: string[] = [STATUS.FINISHED, STATUS.SKIPPED]; | |
| diff --git a/frontend-react/src/components/dashboard/OnboardingTour.tsx b/frontend-react/src/components/dashboard/OnboardingTour.tsx | |
| index d8504d7..29e4893 100644 | |
| --- a/frontend-react/src/components/dashboard/OnboardingTour.tsx | |
| +++ b/frontend-react/src/components/dashboard/OnboardingTour.tsx | |
| -import React, { useState, useEffect } from 'react'; | |
| -import { Joyride, Step, CallBackProps, STATUS } from 'react-joyride'; | |
| +import React from 'react'; | |
| +import Joyride, { Step, STATUS } from 'react-joyride'; | |
| interface OnboardingTourProps { | |
| run: boolean; | |
| interface OnboardingTourProps { | |
| } | |
| export const OnboardingTour: React.FC<OnboardingTourProps> = ({ run, steps, onFinish }) => { | |
| - const handleJoyrideCallback = (data: CallBackProps) => { | |
| + const handleJoyrideCallback = (data: any) => { | |
| const { status, action } = data; | |
| const finishedStatuses: string[] = [STATUS.FINISHED, STATUS.SKIPPED]; | |
| diff --git a/frontend-react/src/vite-env.d.ts b/frontend-react/src/vite-env.d.ts | |
| new file mode 100644 | |
| index 0000000..11f02fe | |
| --- /dev/null | |
| +++ b/frontend-react/src/vite-env.d.ts | |
| @@ -0,0 +1 @@ | |
| +/// <reference types="vite/client" /> | |