Skip to content

Commit

Permalink
Merge pull request #34 from openrice-canada/fix/refactor
Browse files Browse the repository at this point in the history
fix: refactor
  • Loading branch information
ttiimmothy authored Nov 24, 2023
2 parents 3b9dde9 + b3bf6de commit 9f802cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/pages/restaurant/CreateRestaurantPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { getDishesThunk } from "../../redux/dish/dishSlice";
import { getDistrictsThunk } from "../../redux/district/districtSlice";
import { getPaymentMethodsThunk } from "../../redux/paymentMethod/paymentMethodSlice";
import { createRestaurantPaymentMethodThunk } from "../../redux/restaurantPaymentMethod/restaurantPaymentMethodSlice";
import { createRestaurantOwnerThunk } from "../../redux/restaurantOwner/restaurantOwnerSlice";
import { createRestaurantDishThunk } from "../../redux/restaurantDish/restaurantDishSlice";
import { fileTypeToExtension } from "../../utils/fileTypeToExtension";
import { uploadImage } from "../../utils/uploadImageService";
import TextareaInput from "../../components/utils/inputs/TextareaInput";
import TextInput from "../../components/utils/inputs/TextInput";
import SelectInput from "../../components/utils/inputs/SelectInput";
Expand All @@ -21,9 +24,6 @@ import FileInput from "../../components/utils/inputs/FileInput";
import ErrorPage from "../error/ErrorPage";

import "react-datepicker/dist/react-datepicker.css";
import { createRestaurantOwnerThunk } from "../../redux/restaurantOwner/restaurantOwnerSlice";
import { uploadImage } from "../../utils/uploadImageService";
import { fileTypeToExtension } from "../../utils/fileTypeToExtension";

export interface RestaurantForm {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/restaurant/RestaurantHomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useEffect } from "react";
import { useNavigate, useSearchParams } from "react-router-dom";
import { Controller, useForm } from "react-hook-form";
import { useDispatch, useSelector } from "react-redux";

import { AppDispatch, IRootState } from "../../store";
import { getRestaurantsByQueryThunk } from "../../redux/restaurant/restaurantSlice";

import RestaurantCard from "../../components/utils/cards/RestaurantCard";
import SearchInput from "../../components/utils/inputs/SearchInput";

Expand Down
6 changes: 3 additions & 3 deletions src/pages/restaurant/RestaurantOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import {
updateReviewPhotos,
} from "../../redux/photo/photoSlice";
import useOnClickOutside from "../../components/hooks/useOnClickOutside";
import RestaurantOverviewButton from "../../components/utils/buttons/RestaurantOverviewButton";
import ReviewCard from "../../components/utils/cards/ReviewCard";
import RestaurantDetailSkeletonLoader from "../../components/skeletonLoader/RestaurantDetailSkeletonLoader";
import ErrorPage from "../error/ErrorPage";
import ReviewCard from "../../components/utils/cards/ReviewCard";
import RestaurantOverviewButton from "../../components/utils/buttons/RestaurantOverviewButton";
import UploadButton from "../../components/utils/buttons/UploadButton";
import UploadImageModal from "../../components/utils/modals/UploadImageModal";
import CreateReviewModal from "../../components/utils/modals/CreateReviewModal";
import PhotoModal from "../../components/utils/modals/PhotoModal";
import ErrorPage from "../error/ErrorPage";

function isUUID(id: string) {
const uuidPattern =
Expand Down

0 comments on commit 9f802cd

Please sign in to comment.