This commit is contained in:
parent
62de1408f9
commit
7f190d498e
|
|
@ -5,13 +5,6 @@ import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { ExternalLink } from '@/components/external-link'
|
import { ExternalLink } from '@/components/external-link'
|
||||||
import {
|
|
||||||
Tooltip,
|
|
||||||
TooltipContent,
|
|
||||||
TooltipTrigger
|
|
||||||
} from '@/components/ui/tooltip'
|
|
||||||
// import { Button } from './ui/button'
|
|
||||||
import { Textarea } from './ui/textarea'
|
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
|
|
@ -73,14 +66,7 @@ export function Footer({ className, ...props }: React.ComponentProps<'p'>) {
|
||||||
|
|
||||||
const onFinish = async (values: any) => {
|
const onFinish = async (values: any) => {
|
||||||
console.log('Finish:', values);
|
console.log('Finish:', values);
|
||||||
// toast.success("OK")
|
|
||||||
|
|
||||||
// const token = userData.auth_token
|
|
||||||
// if (!token) {
|
|
||||||
// router.push('/auth/sign-in')
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// /api/v1/customer/subscribe
|
|
||||||
if (isLoading) return
|
if (isLoading) return
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
@ -135,8 +121,6 @@ export function Footer({ className, ...props }: React.ComponentProps<'p'>) {
|
||||||
} as UserData
|
} as UserData
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
interface WindowSize {
|
interface WindowSize {
|
||||||
windowWidth: number;
|
windowWidth: number;
|
||||||
windowHeight: number;
|
windowHeight: number;
|
||||||
|
|
@ -151,8 +135,6 @@ export function Footer({ className, ...props }: React.ComponentProps<'p'>) {
|
||||||
windowHeight: window.innerHeight
|
windowHeight: window.innerHeight
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
if (isWindow) {
|
if (isWindow) {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
"use client";
|
||||||
|
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
export const useLocalStorage = <T>(
|
export const useLocalStorage = <T>(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue