diff --git a/src-web/components/Settings/SettingsLicense.tsx b/src-web/components/Settings/SettingsLicense.tsx index 7d7d83c7..82b2042e 100644 --- a/src-web/components/Settings/SettingsLicense.tsx +++ b/src-web/components/Settings/SettingsLicense.tsx @@ -1,8 +1,11 @@ -import { useLicense } from '@yaakapp-internal/license'; -import { format, formatDistanceToNow } from 'date-fns'; import { open } from '@tauri-apps/plugin-shell'; +import { useLicense } from '@yaakapp-internal/license'; +import classNames from 'classnames'; +import { format, formatDistanceToNow } from 'date-fns'; import React, { useState } from 'react'; +import { useCopy } from '../../hooks/useCopy'; import { useSettings } from '../../hooks/useSettings'; +import { useTimedBoolean } from '../../hooks/useTimedBoolean'; import { useToggle } from '../../hooks/useToggle'; import { Banner } from '../core/Banner'; import { Button } from '../core/Button'; @@ -19,34 +22,36 @@ export function SettingsLicense() { const settings = useSettings(); const specialAnnouncement = settings.createdAt < '2024-12-02' && check.data?.type === 'trial_ended'; + const [copied, setCopied] = useTimedBoolean(); + const copy = useCopy({ disableToast: true }); return ( -
Thank you for being an early supporter of Yaak!
@@ -60,8 +65,25 @@ export function SettingsLicense() { Announcement Post.
- As a thank-you, enter code
~ Greg