* perf: Slim down loggedInViewer tRPC router * Fixed trpc client calls for new routes * Moved bookingUnconfirmedCount * Moved getUserTopBanners to me router * Moved shouldVerifyEmail to me router * Moved i18n from public to its own router * fix ssrInit * fix ssrInit usage * fix type check * better naming * fix * fix * Fix types * Removed used of importHandler --------- Co-authored-by: hbjORbj <sldisek783@gmail.com>
14 lines
280 B
TypeScript
14 lines
280 B
TypeScript
import { trpc } from "../trpc";
|
|
|
|
export function useEmailVerifyCheck() {
|
|
const emailCheck = trpc.viewer.me.shouldVerifyEmail.useQuery(undefined, {
|
|
retry(failureCount) {
|
|
return failureCount > 3;
|
|
},
|
|
});
|
|
|
|
return emailCheck;
|
|
}
|
|
|
|
export default useEmailVerifyCheck;
|