Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
fix: fixed all files with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
nmashchenko committed Sep 10, 2023
1 parent 01fb5d5 commit 94ca048
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions client/src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { GoogleOAuthProvider } from '@react-oauth/google';
import { useRouter } from 'next/navigation';
import {ReactNode, useState} from 'react';
import { ReactNode, useState } from 'react';
import { ArrowLeft } from 'shared/assets/Icons/Arrows/ArrowLeft';
import { LogoBig } from 'shared/assets/Icons/Logo/LogoBig';
import { Button, Tabs } from 'shared/ui';
Expand All @@ -15,7 +15,7 @@ export default function AuthLayout({ children }: { children: ReactNode }) {

const handleChange = (option: string) => {
setTab(option);
router.push(`/${option.toLowerCase().replace(/\s/g, '')}`)
router.push(`/${option.toLowerCase().replace(/\s/g, '')}`);
};

const handleBack = () => {
Expand Down
10 changes: 5 additions & 5 deletions client/src/app/(auth)/password/recover/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import { ArrowLeft } from 'shared/assets/Icons/Arrows/ArrowLeft';
import { Colors } from 'shared/constant/colors';
import { Button, Input, Typography, TypographySize } from 'shared/ui';
import styles from './styles.module.scss';
import {useRouter} from "next/navigation";
import { useRouter } from 'next/navigation';

interface RecoverProps {
email: string;
}

export default function Recover() {
const [email, setEmail] = useState('');
const router = useRouter();
const router = useRouter();

const {
register,
Expand All @@ -23,9 +23,9 @@ export default function Recover() {
} = useForm<RecoverProps>();

const onSubmit: SubmitHandler<RecoverProps> = (data) => {
console.log(data)
router.push('confirmation')
}
console.log(data);
router.push('confirmation');
};

return (
<form className={styles.info} onSubmit={handleSubmit(onSubmit)}>
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { Typography, TypographySize, TypographyVariants} from 'shared/ui';
import { Typography, TypographySize, TypographyVariants } from 'shared/ui';

export default function Home() {
return (
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/shared/illustration/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface ConfirmProps {
export const IllustrationStatus = ({
mainText,
subText // buttonText,
} // buttonHandler
: ConfirmProps) => {
// buttonHandler
}: ConfirmProps) => {
return (
<div className={styles.container}>
<Email />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use client'
'use client';
import React, { useEffect, useRef } from 'react';

export const useClickOutside = <T extends HTMLElement>(
Expand Down
2 changes: 1 addition & 1 deletion client/src/shared/ui/modal/ui.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use client'
'use client';

import classNames from 'clsx';
import { FC, PropsWithChildren } from 'react';
Expand Down

0 comments on commit 94ca048

Please sign in to comment.