Download src/components/features/settings/app-settings/getting-started-checklist-switch.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 954 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/app-settings/getting-started-checklist-switch.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/settings/app-settings/getting-started-checklist-switch.tsx
-
curl -L -o getting-started-checklist-switch.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/settings/app-settings/getting-started-checklist-switch.tsx
954 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { SettingsSwitch } from "#/components/features/settings/settings-switch"; | |
| import { useSidebarOnboardingChecklistDismissed } from "#/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed"; | |
| import { writeSidebarOnboardingChecklistDismissed } from "#/components/features/sidebar/sidebar-onboarding-checklist-storage"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| export function GettingStartedChecklistSwitch() { | |
| const { t } = useTranslation("openhands"); | |
| const isDismissed = useSidebarOnboardingChecklistDismissed(); | |
| const handleToggle = (showChecklist: boolean) => { | |
| writeSidebarOnboardingChecklistDismissed(!showChecklist); | |
| }; | |
| return ( | |
| <SettingsSwitch | |
| testId="show-getting-started-checklist-switch" | |
| isToggled={!isDismissed} | |
| onToggle={handleToggle} | |
| > | |
| {t(I18nKey.SETTINGS$SHOW_GETTING_STARTED_CHECKLIST)} | |
| </SettingsSwitch> | |
| ); | |
| } | |