chore: 调整复制分享链接命名
This commit is contained in:
@@ -17,7 +17,7 @@ import { useState } from "react";
|
|||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { BlogPermissionCheckBoxs } from "./BlogPermissionCheckBoxs";
|
import { BlogPermissionCheckBoxs } from "./BlogPermissionCheckBoxs";
|
||||||
import { AdminAPI } from "@/lib/api/client";
|
import { AdminAPI } from "@/lib/api/client";
|
||||||
import { handleCopyShareURL } from "./utils";
|
import { copyShareURL } from "./utils";
|
||||||
|
|
||||||
interface AddBlogProps {
|
interface AddBlogProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
@@ -152,7 +152,7 @@ export default function AddBlog({ children, onRefresh }: AddBlogProps) {
|
|||||||
</div>
|
</div>
|
||||||
<DialogFooter >
|
<DialogFooter >
|
||||||
<div className="flex justify-between w-full">
|
<div className="flex justify-between w-full">
|
||||||
<Button type="button" variant='outline' onClick={() => handleCopyShareURL({
|
<Button type="button" variant='outline' onClick={() => copyShareURL({
|
||||||
slug: blog.slug,
|
slug: blog.slug,
|
||||||
password: blog.password,
|
password: blog.password,
|
||||||
permissions: blog.permissions,
|
permissions: blog.permissions,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { BlogPermission } from "@/lib/types/Blog.Permission.enum";
|
import { BlogPermission } from "@/lib/types/Blog.Permission.enum";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
|
||||||
export function handleCopyShareURL(data: {
|
export function copyShareURL(data: {
|
||||||
slug: string;
|
slug: string;
|
||||||
password: string;
|
password: string;
|
||||||
permissions: BlogPermission[];
|
permissions: BlogPermission[];
|
||||||
|
|||||||
Reference in New Issue
Block a user