refactor(ui): co-locate BackToTopButton as a shared primitive in src/ui

This commit is contained in:
Psychotoxical
2026-06-29 22:34:34 +02:00
parent 6d7464fddf
commit a18f8fc857
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { Clock, Palette, Store, Upload } from 'lucide-react';
import { useThemeStore } from '../../store/themeStore';
import { useInstalledThemesStore } from '../../store/installedThemesStore';
import CustomSelect from '../CustomSelect';
import BackToTopButton from '../BackToTopButton';
import BackToTopButton from '@/ui/BackToTopButton';
import { FIXED_THEMES } from './fixedThemes';
import { InstalledThemes } from './InstalledThemes';
import { ThemeImportSection } from './ThemeImportSection';
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
import { createPortal } from 'react-dom';
import { ArrowUp } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { APP_MAIN_SCROLL_VIEWPORT_ID } from '../constants/appScroll';
import { APP_MAIN_SCROLL_VIEWPORT_ID } from '@/constants/appScroll';
interface BackToTopButtonProps {
/** Id of the scroll viewport to watch/scroll. Defaults to the main route scroller. */