@@ -5,7 +5,7 @@ import useDirDetection from '@/hooks/use-dir-detection'
55import { type UseEditFormValues } from '@/features/users/forms/user-form'
66import { useActiveNextPlanById , useGetCurrentAdmin , useRemoveUserById , useResetUserDataUsageById , useRevokeUserSubscriptionById , UserResponse , UsersResponse } from '@/service/api'
77import { useQueryClient } from '@tanstack/react-query'
8- import { Cat , Check , Copy , Cpu , EllipsisVertical , Fingerprint , GlobeLock , Link2Off , ListStart , ListTree , Network , Pencil , PieChart , QrCode , RefreshCcw , Trash2 , UserCog , Users } from 'lucide-react'
8+ import { Cat , Check , Copy , EllipsisVertical , Fingerprint , GlobeLock , Hash , Link2Off , ListStart , ListTree , Network , Pencil , PieChart , QrCode , RefreshCcw , Trash2 , UserCog , Users } from 'lucide-react'
99import { WireguardIcon , XrayIcon , SingboxIcon , MihomoIcon } from '@/components/icons/format-icons'
1010import { Code } from 'lucide-react'
1111import { FC , useCallback , useEffect , useMemo , useRef , useState , useSyncExternalStore } from 'react'
@@ -438,9 +438,9 @@ const ActionButtons: FC<ActionButtonsProps> = ({ user, isModalHost = true, rende
438438 setSetOwnerModalOpen ( true )
439439 }
440440
441- const handleCopyCoreUsername = async ( ) => {
441+ const handleCopyUserId = async ( ) => {
442442 try {
443- await navigator . clipboard . writeText ( ` ${ user . id } . ${ user . username } ` )
443+ await navigator . clipboard . writeText ( String ( user . id ) )
444444 toast . success ( t ( 'usersTable.copied' , { defaultValue : 'Copied to clipboard' } ) )
445445 } catch ( error ) {
446446 toast . error ( t ( 'copyFailed' , { defaultValue : 'Failed to copy content' } ) )
@@ -719,9 +719,9 @@ const ActionButtons: FC<ActionButtonsProps> = ({ user, isModalHost = true, rende
719719 ) }
720720
721721 { canReadAllUsers && (
722- < DropdownMenuItem onSelect = { handleCopyCoreUsername } >
723- < Cpu className = "mr-2 h-4 w-4" />
724- < span > { t ( 'coreUsername ' ) } </ span >
722+ < DropdownMenuItem onSelect = { handleCopyUserId } >
723+ < Hash className = "mr-2 h-4 w-4" />
724+ < span > { t ( 'copyUserId ' ) } </ span >
725725 </ DropdownMenuItem >
726726 ) }
727727
0 commit comments