- {projectItems.map((item) => (
-
-

-
{item.title}
-
- ))}
+
+ {projectItems.map((item) => {
+ const date = format(parseISO(item.subscriptionUntil), "dd.MM.yyyy");
+
+ return (
+ <>
+
+
+

+
{item.title}
+
+ {selectedProjectIds.includes(item.id) ? (
+
+
+
+ Подписка
+
+
+
Действует до:
+
{date}
+
+
+
Сессий одновременно:
{" "}
+
+ {item.subscriptionSessionCount}
+
+
+
+
+
+
+ Приложение
+
+
+
Версия:
+
+ {item.applicationVersion}
+
+
+
+
+
+ ) : (
+ <>>
+ )}
+
+ >
+ );
+ })}
);
};
diff --git a/src/icons/IconWrapper/IconWrapper.tsx b/src/icons/IconWrapper/IconWrapper.tsx
index c9557ac..10d9edc 100644
--- a/src/icons/IconWrapper/IconWrapper.tsx
+++ b/src/icons/IconWrapper/IconWrapper.tsx
@@ -1,15 +1,10 @@
interface IconProps {
- children: React.ReactElement,
- className?: string
+ children: React.ReactElement;
+ className?: string;
}
-const IconWrapper = ({ children, className } : IconProps) => {
+const IconWrapper = ({ children, className }: IconProps) => {
+ return
{children}
;
+};
- return (
-
- {children}
-
-)
-}
-
-export default IconWrapper;
\ No newline at end of file
+export default IconWrapper;
diff --git a/src/icons/IsNotificationReadIcon/IsNotificationReadIcon.tsx b/src/icons/IsNotificationReadIcon/IsNotificationReadIcon.tsx
new file mode 100644
index 0000000..eabf51f
--- /dev/null
+++ b/src/icons/IsNotificationReadIcon/IsNotificationReadIcon.tsx
@@ -0,0 +1,15 @@
+const IsNotificationReadIcon = () => {
+ return (
+
+ );
+};
+
+export default IsNotificationReadIcon;
diff --git a/src/icons/SystemNotificationIcon/SystemNotificationIcon.tsx b/src/icons/SystemNotificationIcon/SystemNotificationIcon.tsx
new file mode 100644
index 0000000..d4710b0
--- /dev/null
+++ b/src/icons/SystemNotificationIcon/SystemNotificationIcon.tsx
@@ -0,0 +1,28 @@
+const SystemNotificationIcon = () => {
+ return (
+
+ );
+};
+
+export default SystemNotificationIcon;
diff --git a/src/index.css b/src/index.css
index c673619..e14d34e 100644
--- a/src/index.css
+++ b/src/index.css
@@ -5,3 +5,19 @@
body {
@apply bg-[#ccc];
}
+
+/* Scrollbar */
+
+*::-webkit-scrollbar {
+ width: 8px;
+}
+
+*::-webkit-scrollbar-thumb {
+ background-color: #858585;
+ border: 3.5px solid #fff;
+ border-radius: 4px;
+}
+
+*::-webkit-scrollbar-thumb:hover {
+ border-width: 2px;
+}
diff --git a/src/types/companyEmployee.ts b/src/types/companyEmployee.ts
index 36226cc..3ae1648 100644
--- a/src/types/companyEmployee.ts
+++ b/src/types/companyEmployee.ts
@@ -1,6 +1,6 @@
interface ICompanyEmployee {
image: string;
- status: "В сети" | "Не в сети" | "На демонстрации";
+ status: "online" | "offline" | "at demonstration";
name: string;
id: string;
}
diff --git a/src/types/notification.ts b/src/types/notification.ts
new file mode 100644
index 0000000..027077c
--- /dev/null
+++ b/src/types/notification.ts
@@ -0,0 +1,11 @@
+interface INotification {
+ title: string,
+ type: 'Employee' | 'System',
+ isRead: boolean,
+ date: string,
+ image: string | undefined,
+ id: string,
+ content: string,
+}
+
+export default INotification;
\ No newline at end of file
diff --git a/src/types/projectItem.ts b/src/types/projectItem.ts
index d0cb666..de3b83d 100644
--- a/src/types/projectItem.ts
+++ b/src/types/projectItem.ts
@@ -1,7 +1,11 @@
interface IProjectItem {
title: string,
image: string,
- id: string
+ id: string,
+ subscriptionUntil: string,
+ subscriptionSessionCount: number,
+ applicationVersion: string
+
}
export default IProjectItem
\ No newline at end of file