Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: Fixed the issue where the "Publish" pop-up box when clicking on "New Work" was not scheduled to be published
gaoSira7651eca6526
diff --git a/src/app/[lng]/accounts/components/CalendarTiming/index.tsx b/src/app/[lng]/accounts/components/CalendarTiming/index.tsxindex c7f1ae50..2aa04cf4 100644--- a/src/app/[lng]/accounts/components/CalendarTiming/index.tsx+++ b/src/app/[lng]/accounts/components/CalendarTiming/index.tsx@@ -37,6 +37,8 @@ import { useCalendarTiming } from "@/app/[lng]/accounts/components/CalendarTiminimport AvatarPlat from "@/components/AvatarPlat";import AllPlatIcon from "@/app/[lng]/accounts/components/CalendarTiming/AllPlatIcon";import ListMode from "@/app/[lng]/accounts/components/CalendarTiming/ListMode";+import { usePublishDialog } from "@/components/PublishDialog/usePublishDialog";+import dayjs from "dayjs";export interface ICalendarTimingRef {}export interface ICalendarTimingProps {}@@ -236,6 +238,11 @@ const CalendarTiming = memo(icon={<PlusOutlined />}onClick={() => {setPublishDialogOpen(true);+ usePublishDialog+ .getState()+ .setPubTime(+ dayjs(Date.now()).format("YYYY-MM-DD HH:mm:ss"),+ );}}>{t("newWork")}diff --git a/src/app/[lng]/layout.tsx b/src/app/[lng]/layout.tsxindex 9e58bcf4..5f7f81e5 100644--- a/src/app/[lng]/layout.tsx+++ b/src/app/[lng]/layout.tsx@@ -1,7 +1,6 @@import "@/app/var.css";import "../globals.css";import { Providers } from "../layout/Providers";-import Head from "next/head";import { dir } from "i18next";import { languages, fallbackLng } from "@/app/i18n/settings";import { useTranslation } from "@/app/i18n";@@ -18,6 +17,7 @@ export async function generateMetadata({return {title: t("title"),description: t("content"),+ keywords: "aitoearn, AiToEarn, ai, earn, aitoearn.com",};}