fix: 修改复制提示
This commit is contained in:
parent
e8ea597664
commit
c813c24aff
@ -57,6 +57,7 @@ export function SidebarRight({ ...props }: React.ComponentProps<typeof Sidebar>)
|
|||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
|
<span>
|
||||||
<CopyToClipboard
|
<CopyToClipboard
|
||||||
text={`${isBrowser() && location?.origin}/auth?invite=${user?.refer_code}`}
|
text={`${isBrowser() && location?.origin}/auth?invite=${user?.refer_code}`}
|
||||||
onCopy={(text, result) => {
|
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' />
|
<Icon icon='mdi:content-copy' className='text-primary text-2xl' />
|
||||||
</Button>
|
</Button>
|
||||||
</CopyToClipboard>
|
</CopyToClipboard>
|
||||||
|
</span>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>{t('copyInviteLink')}</TooltipContent>
|
<TooltipContent>{t('copyInviteLink')}</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
* */
|
* */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
$schema: 'https://json.schemastore.org/commitlintrc',
|
$schema: 'https://json.schemastore.org/commitlintrc',
|
||||||
extends: ['gitmoji'],
|
// extends: ['gitmoji'],
|
||||||
rules: {
|
rules: {
|
||||||
'footer-leading-blank': [0, 'never'],
|
'footer-leading-blank': [0, 'never'],
|
||||||
'header-max-length': [0, 'never'],
|
'header-max-length': [0, 'never'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user