Spaces:
Sleeping
Sleeping
Commit ·
4d613a5
1
Parent(s): 8c762ac
add icon for create space
Browse files
src/components/createspace/CreateSpace.jsx
CHANGED
|
@@ -9,22 +9,84 @@ import {
|
|
| 9 |
PiBooks,
|
| 10 |
PiStudent,
|
| 11 |
PiFlask,
|
| 12 |
-
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
} from "react-icons/pi";
|
| 15 |
import { cancelCreateSpace } from "../../store/slices/appSlice";
|
| 16 |
|
| 17 |
const spaceIcons = [
|
| 18 |
-
{ id: "graduation", icon: PiGraduationCap },
|
| 19 |
-
{ id: "robot", icon: PiRobot },
|
| 20 |
-
{ id: "folder", icon: PiFolder },
|
| 21 |
-
{ id: "pencil", icon: PiPencil },
|
| 22 |
-
{ id: "computer", icon: PiComputerTower },
|
| 23 |
-
{ id: "books", icon: PiBooks },
|
| 24 |
-
{ id: "student", icon: PiStudent },
|
| 25 |
-
{ id: "flask", icon: PiFlask },
|
| 26 |
-
{ id: "
|
| 27 |
-
{ id: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
];
|
| 29 |
|
| 30 |
function CreateSpace() {
|
|
|
|
| 9 |
PiBooks,
|
| 10 |
PiStudent,
|
| 11 |
PiFlask,
|
| 12 |
+
PiCode,
|
| 13 |
+
PiGlobe,
|
| 14 |
+
PiMusicNotes,
|
| 15 |
+
PiPalette,
|
| 16 |
+
PiCamera,
|
| 17 |
+
PiGameController,
|
| 18 |
+
PiHeart,
|
| 19 |
+
PiStar,
|
| 20 |
+
PiRocket,
|
| 21 |
+
PiBrain,
|
| 22 |
+
PiCalculator,
|
| 23 |
+
PiCalendar,
|
| 24 |
+
PiUsers,
|
| 25 |
+
PiTrophy,
|
| 26 |
+
PiFlag,
|
| 27 |
+
PiSun,
|
| 28 |
+
PiMoon,
|
| 29 |
+
PiCloud,
|
| 30 |
+
PiHouse,
|
| 31 |
+
PiCar,
|
| 32 |
+
PiAirplane,
|
| 33 |
+
PiBasketball,
|
| 34 |
+
PiGuitar,
|
| 35 |
+
PiPhone,
|
| 36 |
+
PiLaptop,
|
| 37 |
+
PiCoffee,
|
| 38 |
+
PiPizza,
|
| 39 |
+
PiFirstAid,
|
| 40 |
+
PiLockKey,
|
| 41 |
+
PiMoney,
|
| 42 |
+
PiGift,
|
| 43 |
+
PiFire,
|
| 44 |
+
PiSnowflake,
|
| 45 |
} from "react-icons/pi";
|
| 46 |
import { cancelCreateSpace } from "../../store/slices/appSlice";
|
| 47 |
|
| 48 |
const spaceIcons = [
|
| 49 |
+
{ id: "graduation", icon: PiGraduationCap, label: "Tốt nghiệp" },
|
| 50 |
+
{ id: "robot", icon: PiRobot, label: "Robot" },
|
| 51 |
+
{ id: "folder", icon: PiFolder, label: "Thư mục" },
|
| 52 |
+
{ id: "pencil", icon: PiPencil, label: "Bút chì" },
|
| 53 |
+
{ id: "computer", icon: PiComputerTower, label: "Máy tính" },
|
| 54 |
+
{ id: "books", icon: PiBooks, label: "Sách" },
|
| 55 |
+
{ id: "student", icon: PiStudent, label: "Học sinh" },
|
| 56 |
+
{ id: "flask", icon: PiFlask, label: "Thí nghiệm" },
|
| 57 |
+
{ id: "code", icon: PiCode, label: "Lập trình" },
|
| 58 |
+
{ id: "globe", icon: PiGlobe, label: "Thế giới" },
|
| 59 |
+
{ id: "music", icon: PiMusicNotes, label: "Âm nhạc" },
|
| 60 |
+
{ id: "palette", icon: PiPalette, label: "Mỹ thuật" },
|
| 61 |
+
{ id: "camera", icon: PiCamera, label: "Nhiếp ảnh" },
|
| 62 |
+
{ id: "game", icon: PiGameController, label: "Game" },
|
| 63 |
+
{ id: "heart", icon: PiHeart, label: "Yêu thích" },
|
| 64 |
+
{ id: "star", icon: PiStar, label: "Ngôi sao" },
|
| 65 |
+
{ id: "rocket", icon: PiRocket, label: "Tên lửa" },
|
| 66 |
+
{ id: "brain", icon: PiBrain, label: "Trí tuệ" },
|
| 67 |
+
{ id: "calculator", icon: PiCalculator, label: "Máy tính" },
|
| 68 |
+
{ id: "calendar", icon: PiCalendar, label: "Lịch" },
|
| 69 |
+
{ id: "users", icon: PiUsers, label: "Nhóm" },
|
| 70 |
+
{ id: "trophy", icon: PiTrophy, label: "Cúp" },
|
| 71 |
+
{ id: "flag", icon: PiFlag, label: "Cờ" },
|
| 72 |
+
{ id: "sun", icon: PiSun, label: "Mặt trờii" },
|
| 73 |
+
{ id: "moon", icon: PiMoon, label: "Mặt trăng" },
|
| 74 |
+
{ id: "cloud", icon: PiCloud, label: "Mây" },
|
| 75 |
+
{ id: "house", icon: PiHouse, label: "Nhà" },
|
| 76 |
+
{ id: "car", icon: PiCar, label: "Xe hơi" },
|
| 77 |
+
{ id: "airplane", icon: PiAirplane, label: "Máy bay" },
|
| 78 |
+
{ id: "basketball", icon: PiBasketball, label: "Bóng rổ" },
|
| 79 |
+
{ id: "guitar", icon: PiGuitar, label: "Guitar" },
|
| 80 |
+
{ id: "phone", icon: PiPhone, label: "Điện thoại" },
|
| 81 |
+
{ id: "laptop", icon: PiLaptop, label: "Laptop" },
|
| 82 |
+
{ id: "coffee", icon: PiCoffee, label: "Cà phê" },
|
| 83 |
+
{ id: "pizza", icon: PiPizza, label: "Pizza" },
|
| 84 |
+
{ id: "firstaid", icon: PiFirstAid, label: "Sơ cứu" },
|
| 85 |
+
{ id: "lock", icon: PiLockKey, label: "Khóa" },
|
| 86 |
+
{ id: "money", icon: PiMoney, label: "Tiền" },
|
| 87 |
+
{ id: "gift", icon: PiGift, label: "Quà" },
|
| 88 |
+
{ id: "fire", icon: PiFire, label: "Lửa" },
|
| 89 |
+
{ id: "snowflake", icon: PiSnowflake, label: "Bông tuyết" },
|
| 90 |
];
|
| 91 |
|
| 92 |
function CreateSpace() {
|