refactor: restyle some components with tailwind

This commit is contained in:
Tristan Yang
2022-11-14 23:52:00 +08:00
parent 126cbc39a2
commit 734c6ce75b
13 changed files with 64 additions and 225 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { createApi } from "@reduxjs/toolkit/query/react";
import { nanoid } from "@reduxjs/toolkit";
import baseQuery from "./base.query";
import { setAuthData, updateToken, resetAuthData, updateInitialized } from "../slices/auth.data";
import BASE_URL, { KEY_DEVICE_KEY, KEY_LOCAL_MAGIC_TOKEN } from "../config";
import BASE_URL, { KEY_DEVICE_ID, KEY_LOCAL_MAGIC_TOKEN } from "../config";
import {
AuthData,
CredentialResponse,
@@ -12,10 +12,10 @@ import {
} from "../../types/auth";
const getDeviceId = () => {
let d = localStorage.getItem(KEY_DEVICE_KEY);
let d = localStorage.getItem(KEY_DEVICE_ID);
if (!d) {
d = `web:${nanoid()}`;
localStorage.setItem(KEY_DEVICE_KEY, d);
localStorage.setItem(KEY_DEVICE_ID, d);
}
return d;
};