feat(device): Modify IMEI to device identifier support

This commit is contained in:
web@ppanel
2025-02-13 22:28:45 +07:00
parent 4e7d249902
commit e3f9ef6ebe
99 changed files with 201 additions and 125 deletions
@@ -9,13 +9,13 @@ import { useTranslations } from 'next-intl';
import { toast } from 'sonner';
export default function Page() {
const t = useTranslations('imei');
const t = useTranslations('device');
const { data, refetch } = useQuery({
queryKey: ['getAuthMethodConfig', 'imei'],
queryKey: ['getAuthMethodConfig', 'device'],
queryFn: async () => {
const { data } = await getAuthMethodConfig({
method: 'imei',
method: 'device',
});
return data.data;
},