diff --git a/src/app/components/OnboardingButton.tsx b/src/app/components/OnboardingButton.tsx index 1d5e9d88..20ba9635 100644 --- a/src/app/components/OnboardingButton.tsx +++ b/src/app/components/OnboardingButton.tsx @@ -1,9 +1,6 @@ import { Button, Tooltip } from "antd"; import { BookOpen } from "phosphor-react"; import React, { useContext } from "react"; -import { useSelector } from "react-redux"; -import { RootState } from "../store/store"; -import { BackendStatus } from "../types/mainSlice.types"; import { useOnBoardingRef } from "../../features/onboarding/utils/useOnboardingRef"; import { OnbrdStep } from "../../features/onboarding/types/constants"; import { OnboardingPopup } from "../../features/onboarding/components/OnboardingPopup"; @@ -13,10 +10,7 @@ import { OnboardingContext } from "../../features/onboarding/OnboardingProvider" export const OnboardingButton = () => { const [isTooltipVisible, setIsTooltipVisible] = React.useState(false); - const isOnboardingAvailable = - useSelector((_state) => _state.main.backendAvailable) === BackendStatus.Accessed; - - const { isOpen: isOnboardingOpen } = useContext(OnboardingContext); + const { isOnboardingAvailable } = useContext(OnboardingContext); const onbrdRef = useOnBoardingRef(OnbrdStep.Onboarding); @@ -29,7 +23,7 @@ export const OnboardingButton = () => { title={componentsTexts.OnboardingButtonTitle} >