diff --git a/apps/nextjs/src/common/utils/helpers.ts b/apps/nextjs/src/common/utils/helpers.ts index ebfe55f..dde6632 100644 --- a/apps/nextjs/src/common/utils/helpers.ts +++ b/apps/nextjs/src/common/utils/helpers.ts @@ -1,8 +1,10 @@ /** - * isNullOrUndefined - * @description - validate if an element is null or undefined + * isNullOrUndefined. + * + * - validate if an element is null or undefined. + * * @function - * @param {any} value - Element to validate - * @return {boolean} Element is null or undefined. + * @param {any} value - Element to validate. + * @returns {boolean} Element is null or undefined. */ -export const isNullOrUndefined = (value: any): boolean => value === undefined || value === null; +export const isNullOrUndefined = (value: unknown): boolean => value === undefined || value === null; diff --git a/apps/nextjs/src/pages/auth/signin.tsx b/apps/nextjs/src/pages/auth/signin.tsx index 6f01ffa..8db2ecc 100644 --- a/apps/nextjs/src/pages/auth/signin.tsx +++ b/apps/nextjs/src/pages/auth/signin.tsx @@ -7,7 +7,7 @@ const Signin: NextPage = () => {
diff --git a/apps/nextjs/src/pages/index.tsx b/apps/nextjs/src/pages/index.tsx index a78613e..1a9325e 100644 --- a/apps/nextjs/src/pages/index.tsx +++ b/apps/nextjs/src/pages/index.tsx @@ -1,9 +1,9 @@ import type { NextPage } from 'next'; import Head from 'next/head'; import Link from 'next/link'; +import { Icon, IconCatalog } from '~/components'; import { signIn, useSession } from 'next-auth/react'; import { Button, ButtonSize, ButtonVariant } from 'side-ui'; -import { Icon, IconCatalog } from '~/components'; const Home: NextPage = () => { const { data: sessionData } = useSession(); @@ -18,26 +18,17 @@ const Home: NextPage = () => {
- + Side Project Starter Kit
-

- This is a starter kit template -

+

This is a starter kit template

{sessionData ? (

{sessionData.user.name}

) : ( - )}