Skip to content

Commit

Permalink
✨ dashboard responsiveness issue solved 📊
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Oct 8, 2024
1 parent e8387de commit 6eefba8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/components/common/AnimatedCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import Image from "next/image";
import React from "react";
import {memo} from "react";
import { CardBody, CardContainer, CardItem } from "@/components/ui/3d-card";
import { AnimatedCardProps } from "@/types";
import Link from "next/link";
Expand Down Expand Up @@ -54,4 +54,4 @@ const AnimatedCard = ({
);
};

export default AnimatedCard;
export default memeo(AnimatedCard);
4 changes: 2 additions & 2 deletions client/components/common/CropImage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { Dispatch, SetStateAction } from "react";
import { Dispatch, memo, SetStateAction } from "react";
import Cropper from "react-easy-crop";
import { Input } from "@/components/ui/input";
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "@/components/ui/select";
Expand Down Expand Up @@ -98,4 +98,4 @@ const CropImage = ({
);
};

export default CropImage;
export default memo(CropImage);
4 changes: 2 additions & 2 deletions client/components/common/CustomFormField.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { memo } from "react";
import { FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import "react-phone-number-input/style.css";
import "react-datepicker/dist/react-datepicker.css";
Expand Down Expand Up @@ -154,4 +154,4 @@ const CustomFormField: React.FC<CustomProps> = (props) => {
);
};

export default CustomFormField;
export default memo(CustomFormField);
4 changes: 2 additions & 2 deletions client/components/common/ResponsieveCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from "next/image";
import React from "react";
import React, { memo } from "react";

const ResponsiveCard = () => {
return (
Expand Down Expand Up @@ -29,4 +29,4 @@ const ResponsiveCard = () => {
);
};

export default ResponsiveCard;
export default memo(ResponsiveCard);

0 comments on commit 6eefba8

Please sign in to comment.