diff --git a/src/Components/Profile/MySalary/CurrentMonthCard.tsx b/src/Components/Profile/MySalary/CurrentMonthCard.tsx
index 77a84dc..b362d5f 100644
--- a/src/Components/Profile/MySalary/CurrentMonthCard.tsx
+++ b/src/Components/Profile/MySalary/CurrentMonthCard.tsx
@@ -6,6 +6,45 @@ type Props = {
current: CurrentMonth;
};
+const InfoItem = ({
+ label,
+ value,
+ prefix,
+}: {
+ label: string;
+ value: number;
+ prefix?: string;
+}) => (
+
+
+ {label}
+
+
+
+);
+
const CurrentMonthCard: React.FC = ({ current }) => {
return (
@@ -15,9 +54,9 @@ const CurrentMonthCard: React.FC = ({ current }) => {
style={{
fontFamily: "Geist Mono",
fontSize: "12px",
- fontStyle: "normal",
fontWeight: 400,
lineHeight: "16px",
+ color: "#9b9daa",
}}
>
{`Current month / ${dayjs().format("MMMM")}`}
@@ -29,109 +68,27 @@ const CurrentMonthCard: React.FC = ({ current }) => {
valueStyle={{
fontFamily: "Inter",
fontSize: "24px",
- fontStyle: "normal",
fontWeight: 700,
lineHeight: "28px",
letterSpacing: "-0.96px",
}}
/>
-
-
-
-
- Bonuses:
-
-
-
+
+
+
+
-
-
-
- Charges:
-
-
-
+
+
-
-
-
- Tasks:
-
-
-
+
+
-
-
-
- Points:
-
-
-
+
+
diff --git a/src/Components/Profile/MySalary/SalaryHistoryTable.tsx b/src/Components/Profile/MySalary/SalaryHistoryTable.tsx
index f3a998e..14c3eff 100644
--- a/src/Components/Profile/MySalary/SalaryHistoryTable.tsx
+++ b/src/Components/Profile/MySalary/SalaryHistoryTable.tsx
@@ -26,6 +26,8 @@ const SalaryHistoryTable: React.FC = ({ year, salaries }) => {
dataSource={salaries}
rowKey="id"
+ scroll={{ x: 800 }}
+ locale={{ emptyText: "No data" }}
pagination={false}
size="large"
columns={[
diff --git a/src/Components/Profile/MySalary/TotalStatistics.tsx b/src/Components/Profile/MySalary/TotalStatistics.tsx
index 80cbaf8..7895a60 100644
--- a/src/Components/Profile/MySalary/TotalStatistics.tsx
+++ b/src/Components/Profile/MySalary/TotalStatistics.tsx
@@ -1,156 +1,58 @@
-import { Row, Col, Statistic } from "antd";
+import { Row, Col } from "antd";
import { Total } from "../../../types/Profile/TProfile";
type Props = {
total: Total;
};
+const Item = ({ label, value }: { label: string; value: React.ReactNode }) => (
+
+
+ {label}
+
+
+ {value}
+
+
+);
+
const TotalStatistics: React.FC = ({ total }) => {
return (
-
-
-
-
- Total salary
-
-
- ${total.total_earned_salary}
-
-
+
+
+
-
-
-
- Total bonuses
-
-
- +${total.total_bonuses}
-
-
+
+
-
-
-
- Total charges
-
-
- -${total.total_charges}
-
-
+
+
-
-
-
- Total tasks
-
-
- {total.total_number_of_tasks}
-
-
+
+
-
-
-
- Total points
-
-
- {total.total_earned_points}
-
-
+
+
);
diff --git a/src/Components/Profile/MySalary/index.tsx b/src/Components/Profile/MySalary/index.tsx
index a220b77..fdfcda9 100644
--- a/src/Components/Profile/MySalary/index.tsx
+++ b/src/Components/Profile/MySalary/index.tsx
@@ -89,13 +89,17 @@ const MySalary: React.FC = () => {
- {years.map((year) => (
- s.year === year)}
- />
- ))}
+ {years.length > 0 ? (
+ years.map((year) => (
+ s.year === year)}
+ />
+ ))
+ ) : (
+
+ )}
);