mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +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 { Modal, useThemeMode } from "flowbite-react";
|
||||
import { Modal, ModalBody, ModalHeader, useThemeMode } from "flowbite-react";
|
||||
import { ENDPOINTS } from "#/api/config";
|
||||
import { useState } from "react";
|
||||
import { toast } from "react-toastify";
|
||||
|
@ -98,8 +98,8 @@ export const ProfileEditPrivacyModal = (props: {
|
|||
onClose={() => props.setIsOpen(false)}
|
||||
size={"4xl"}
|
||||
>
|
||||
<Modal.Header>{setting_text[props.setting]}</Modal.Header>
|
||||
<Modal.Body>
|
||||
<ModalHeader>{setting_text[props.setting]}</ModalHeader>
|
||||
<ModalBody>
|
||||
{props.setting != "none" ?
|
||||
<>
|
||||
<div className="flex flex-col gap-2">
|
||||
|
@ -202,7 +202,7 @@ export const ProfileEditPrivacyModal = (props: {
|
|||
</div>
|
||||
</>
|
||||
: ""}
|
||||
</Modal.Body>
|
||||
</ModalBody>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue