mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
✅ 为什么 eslint 的warning都不让我过编译 (
This commit is contained in:
parent
7d3193d958
commit
aa897939d9
@ -31,12 +31,10 @@ export default function CookieManager() {
|
||||
const [deleteCookie] = useDeleteCookieMutation();
|
||||
|
||||
const handleAddCookie = (newSiteName: string) => () => {
|
||||
console.log(newSiteName);
|
||||
setSiteName(newSiteName);
|
||||
setShowModal(true);
|
||||
};
|
||||
const handleDelCookie = (cookieId: string) => () => {
|
||||
console.log(cookieId);
|
||||
deleteCookie({
|
||||
cookieId,
|
||||
});
|
||||
|
@ -7,7 +7,7 @@ import { useDeleteCookieTargetMutation, useGetCookieTargetsQuery } from '../cook
|
||||
import { CookieTarget } from '../../utils/type';
|
||||
import CookieTargetModal from './CookieTargetModal';
|
||||
|
||||
export default function () {
|
||||
export default function CookieTargetManager() {
|
||||
const { cookieId: cookieParam } = useParams();
|
||||
if (cookieParam === undefined) {
|
||||
return <Empty />;
|
||||
@ -19,9 +19,7 @@ export default function () {
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
const [deleteCookieTarget] = useDeleteCookieTargetMutation();
|
||||
const handleAdd = () => {
|
||||
console.log('before', showModal);
|
||||
setShowModal(true);
|
||||
console.log('after', showModal);
|
||||
};
|
||||
const handleDelete = (record: CookieTarget) => () => {
|
||||
deleteCookieTarget({
|
||||
|
@ -11,7 +11,7 @@ interface SubscribeModalProp {
|
||||
setVisible: (arg0: boolean) => void;
|
||||
}
|
||||
|
||||
export default function ({ cookieId, visible, setVisible }: SubscribeModalProp) {
|
||||
export default function CookieTargetModal({ cookieId, visible, setVisible }: SubscribeModalProp) {
|
||||
const [newCookieTarget] = useNewCookieTargetMutation();
|
||||
|
||||
const { data: subs } = useGetSubsQuery();
|
||||
|
Loading…
x
Reference in New Issue
Block a user