This commit is contained in:
Jorrin 2024-04-15 16:52:50 +02:00
parent 9d796108a5
commit df89bda66a
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ function SortableItem(props: { id: string }) {
);
}
export function DraggableList(props: {
export function SortableList(props: {
items: string[];
setItems: (items: string[]) => void;
}) {

View File

@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
import { Toggle } from "@/components/buttons/Toggle";
import { FlagIcon } from "@/components/FlagIcon";
import { Dropdown } from "@/components/form/Dropdown";
import { DraggableList } from "@/components/form/SortableList";
import { SortableList } from "@/components/form/SortableList";
import { Heading1 } from "@/components/utils/Text";
import { appLanguageOptions } from "@/setup/i18n";
import { isAutoplayAllowed } from "@/utils/autoplay";
@ -106,7 +106,7 @@ export function PreferencesPart(props: {
{t("settings.preferences.sourceOrderDescription")}
</p>
<DraggableList
<SortableList
items={props.sourceOrder}
setItems={props.setSourceOrder}
/>