diff --git a/.prettierrc b/.prettierrc index 136d6b5..ad4d5eb 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,6 +2,6 @@ "semi": true, "trailingComma": "all", "singleQuote": true, - "printWidth": 80, + "printWidth": 90, "plugins": ["prettier-plugin-jsdoc"] } diff --git a/components/BeerById/BeerInfoHeader.tsx b/components/BeerById/BeerInfoHeader.tsx index 0a167a7..7d8b7e9 100644 --- a/components/BeerById/BeerInfoHeader.tsx +++ b/components/BeerById/BeerInfoHeader.tsx @@ -9,9 +9,7 @@ import UserContext from '@/contexts/userContext'; import sendCheckIfUserLikesBeerPostRequest from '@/requests/sendCheckIfUserLikesBeerPostRequest'; import sendLikeRequest from '../../requests/sendLikeRequest'; -const BeerInfoHeader: FC<{ beerPost: BeerPostQueryResult }> = ({ - beerPost, -}) => { +const BeerInfoHeader: FC<{ beerPost: BeerPostQueryResult }> = ({ beerPost }) => { const createdAtDate = new Date(beerPost.createdAt); const [timeDistance, setTimeDistance] = useState(''); const { user } = useContext(UserContext); @@ -36,9 +34,7 @@ const BeerInfoHeader: FC<{ beerPost: BeerPostQueryResult }> = ({ }, [user, beerPost.id]); useEffect(() => { - setTimeDistance( - formatDistanceStrict(new Date(beerPost.createdAt), new Date()), - ); + setTimeDistance(formatDistanceStrict(new Date(beerPost.createdAt), new Date())); }, [beerPost.createdAt]); const handleLike = async () => { @@ -66,10 +62,7 @@ const BeerInfoHeader: FC<{ beerPost: BeerPostQueryResult }> = ({

posted by{' '} - + {beerPost.postedBy.username}{' '} = ({
- - {beerPost.abv}% ABV - + {beerPost.abv}% ABV {beerPost.ibu} IBU
diff --git a/components/BeerById/BeerRecommendations.tsx b/components/BeerById/BeerRecommendations.tsx index 64119b0..1bda780 100644 --- a/components/BeerById/BeerRecommendations.tsx +++ b/components/BeerById/BeerRecommendations.tsx @@ -14,17 +14,10 @@ const BeerRecommendations: FunctionComponent = ({ {beerRecommendations.map((beerPost) => (
- +

{beerPost.name}

- +

{beerPost.brewery.name}

diff --git a/components/Login/LoginForm.tsx b/components/Login/LoginForm.tsx index 12fb75b..08288df 100644 --- a/components/Login/LoginForm.tsx +++ b/components/Login/LoginForm.tsx @@ -1,5 +1,5 @@ import sendLoginUserRequest from '@/requests/sendLoginUserRequest'; -import LoginValidationSchema from '@/services/user/schema/LoginValidationSchema'; +import LoginValidationSchema from '@/services/User/schema/LoginValidationSchema'; import { zodResolver } from '@hookform/resolvers/zod'; import { useRouter } from 'next/router'; import { useForm, SubmitHandler } from 'react-hook-form'; @@ -66,7 +66,7 @@ const LoginForm = () => {
-
diff --git a/components/ui/Navbar.tsx b/components/ui/Navbar.tsx index 51a82d3..c712b61 100644 --- a/components/ui/Navbar.tsx +++ b/components/ui/Navbar.tsx @@ -26,7 +26,7 @@ const Navbar = () => { return (