diff --git a/.vscode/settings.json b/.vscode/settings.json
index aead3fc..12bd8af 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,6 +9,7 @@
"Nsenph",
"Openrice",
"paymentmethod",
+ "primevue",
"reduxjs",
"supabase",
"tailwindcss"
diff --git a/public/error.svg b/public/error.svg
index 6a66039..d8517ed 100644
--- a/public/error.svg
+++ b/public/error.svg
@@ -1,7 +1,7 @@
-
-
\ No newline at end of file
diff --git a/public/restaurant.jpeg b/public/restaurant.jpg
similarity index 100%
rename from public/restaurant.jpeg
rename to public/restaurant.jpg
diff --git a/public/restaurant_empty.jpeg b/public/restaurant_empty.jpg
similarity index 100%
rename from public/restaurant_empty.jpeg
rename to public/restaurant_empty.jpg
diff --git a/src/assets/error.svg b/src/assets/error.svg
new file mode 100644
index 0000000..d8517ed
--- /dev/null
+++ b/src/assets/error.svg
@@ -0,0 +1,4204 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/assets/index.ts b/src/assets/index.ts
new file mode 100644
index 0000000..fa835f1
--- /dev/null
+++ b/src/assets/index.ts
@@ -0,0 +1,6 @@
+import RestaurantImage from "./restaurant_empty.jpg";
+import PrimeVue from "./primevue.svg";
+import Error from "./error.svg";
+
+// export { RestaurantImage, Error };
+export { RestaurantImage, PrimeVue, Error };
diff --git a/src/assets/primevue.svg b/src/assets/primevue.svg
new file mode 100644
index 0000000..2821ee0
--- /dev/null
+++ b/src/assets/primevue.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/assets/restaurant_empty.jpg b/src/assets/restaurant_empty.jpg
new file mode 100644
index 0000000..971ab2b
Binary files /dev/null and b/src/assets/restaurant_empty.jpg differ
diff --git a/src/image.d.ts b/src/image.d.ts
new file mode 100644
index 0000000..3579274
--- /dev/null
+++ b/src/image.d.ts
@@ -0,0 +1,15 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
+declare module "*.jpg" {
+ const value: any;
+ export = value;
+}
+
+declare module "*.png" {
+ const value: any;
+ export = value;
+}
+
+declare module "*.svg" {
+ const value: any;
+ export = value;
+}
diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx
index afb6e5e..6cd025a 100644
--- a/src/pages/ProfilePage.tsx
+++ b/src/pages/ProfilePage.tsx
@@ -17,12 +17,12 @@ import { createRestaurantOwnerThunk } from "../redux/restaurantOwner/restaurantO
import { createRestaurantDishThunk } from "../redux/restaurantDish/restaurantDishSlice";
import { fileTypeToExtension } from "../utils/fileTypeToExtension";
import { uploadImage } from "../utils/uploadImageService";
+import { PrimeVue } from "../assets/index";
import TextareaInput from "../components/utils/inputs/TextareaInput";
import TextInput from "../components/utils/inputs/TextInput";
import SelectInput from "../components/utils/inputs/SelectInput";
import NumberInput from "../components/utils/inputs/NumberInput";
import FileInput from "../components/utils/inputs/FileInput";
-import ErrorPage from "./error/ErrorPage";
import "react-datepicker/dist/react-datepicker.css";
@@ -200,7 +200,7 @@ const ProfilePage: React.FC = () => {
}
};
- return user?.role === "Admin" ? (
+ return (
- ) : (
-
);
};
diff --git a/tsconfig.json b/tsconfig.json
index a273b0c..512bc3b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
+ "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
@@ -14,13 +10,14 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
- "moduleResolution": "node",
+ "moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
- "jsx": "react-jsx"
+ "jsx": "preserve",
+ "incremental": true,
+ "paths": { "@/*": ["./src/*"] }
},
- "include": [
- "src"
- ]
+ "include": ["**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules"]
}