Skip to content

Commit

Permalink
feat: show a button when summarized
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 9, 2023
1 parent 3ba1f81 commit 59025ea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/ActionsAfterResult.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from "next/image";
import Link from "next/link";
import React from "react";
import { useLocalStorage } from "react-use";
import { useSaveToFlomo } from "~/hooks/notes/flomo";
Expand Down Expand Up @@ -39,7 +40,7 @@ export function ActionsAfterResult({
>
一键复制
</button>
{flomoWebhook && (
{flomoWebhook ? (
<button
className="flex w-44 cursor-pointer items-center justify-center rounded-lg bg-green-400 px-2 py-1 text-center font-medium text-white hover:bg-green-400/80"
onClick={save}
Expand All @@ -50,6 +51,14 @@ export function ActionsAfterResult({
"一键保存到 Flomo"
)}
</button>
) : (
<Link
className="flex w-44 cursor-pointer items-center justify-center rounded-lg bg-green-400 px-2 py-1 text-center font-medium text-white hover:bg-green-400/80"
href="/user/integration"
target="_blank"
>
📒 一键保存到笔记
</Link>
)}
</div>
);
Expand Down

1 comment on commit 59025ea

@vercel
Copy link

@vercel vercel bot commented on 59025ea Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.