mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-13 08:19:40 +05:00
chore: migrate to new flowbite-react
This commit is contained in:
parent
8daab3b3c1
commit
329448c9fc
32 changed files with 650 additions and 344 deletions
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import { Dropdown } from "flowbite-react";
|
||||
import { Dropdown, DropdownItem } from "flowbite-react";
|
||||
import { numberDeclension } from "#/api/utils";
|
||||
import { useUserPlayerPreferencesStore } from "#/store/player";
|
||||
|
||||
|
@ -55,7 +55,7 @@ export const SourceSelector = (props: {
|
|||
)}
|
||||
>
|
||||
{props.availableSource.map((source: Source) => (
|
||||
<Dropdown.Item
|
||||
<DropdownItem
|
||||
key={`source_${source.id}`}
|
||||
onClick={() => {
|
||||
playerPreferenceStore.setPreferredPlayer(
|
||||
|
@ -69,7 +69,7 @@ export const SourceSelector = (props: {
|
|||
}}
|
||||
>
|
||||
<DropdownItem {...source} />
|
||||
</Dropdown.Item>
|
||||
</DropdownItem>
|
||||
))}
|
||||
</Dropdown>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue