fix: 修改复制提示

This commit is contained in:
speakeloudest 2025-07-23 21:40:11 -07:00
parent e8ea597664
commit c813c24aff
4 changed files with 15 additions and 13 deletions

View File

@ -57,6 +57,7 @@ export function SidebarRight({ ...props }: React.ComponentProps<typeof Sidebar>)
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<span>
<CopyToClipboard
text={`${isBrowser() && location?.origin}/auth?invite=${user?.refer_code}`}
onCopy={(text, result) => {
@ -69,6 +70,7 @@ export function SidebarRight({ ...props }: React.ComponentProps<typeof Sidebar>)
<Icon icon='mdi:content-copy' className='text-primary text-2xl' />
</Button>
</CopyToClipboard>
</span>
</TooltipTrigger>
<TooltipContent>{t('copyInviteLink')}</TooltipContent>
</Tooltip>

BIN
bun.lockb

Binary file not shown.

View File

@ -5,7 +5,7 @@
* */
module.exports = {
$schema: 'https://json.schemastore.org/commitlintrc',
extends: ['gitmoji'],
// extends: ['gitmoji'],
rules: {
'footer-leading-blank': [0, 'never'],
'header-max-length': [0, 'never'],