mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 11:56:45 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
f91f1098e7
commit
136f1b98cd
2 changed files with 13 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ export interface Profile {
|
||||||
stripe_customer_id: string | null;
|
stripe_customer_id: string | null;
|
||||||
paddle_customer_id: string | null;
|
paddle_customer_id: string | null;
|
||||||
onboarding_completed: boolean;
|
onboarding_completed: boolean;
|
||||||
|
timezone: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useProfile() {
|
export function useProfile() {
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { createFileRoute } from "@tanstack/react-router";
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
import { useState, useEffect } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||||
import { IMaskInput } from "react-imask";
|
import { IMaskInput } from "react-imask";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { Loader2, LogOut } from "lucide-react";
|
import { Loader2, LogOut, Globe } from "lucide-react";
|
||||||
import { supabase } from "@/integrations/supabase/client";
|
import { supabase } from "@/integrations/supabase/client";
|
||||||
import { useAuth } from "@/hooks/use-auth";
|
import { useAuth } from "@/hooks/use-auth";
|
||||||
import { useProfile } from "@/hooks/use-profile";
|
import { useProfile } from "@/hooks/use-profile";
|
||||||
|
|
@ -17,6 +17,16 @@ import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectGroup,
|
||||||
|
SelectItem,
|
||||||
|
SelectLabel,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from "@/components/ui/select";
|
||||||
|
import { TIMEZONE_OPTIONS } from "@/lib/timezones";
|
||||||
|
|
||||||
export const Route = createFileRoute("/painel/configuracoes")({
|
export const Route = createFileRoute("/painel/configuracoes")({
|
||||||
component: SettingsPage,
|
component: SettingsPage,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue