1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00
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}
/>