diff --git a/src/app/[locale]/tenders/page.tsx b/src/app/[locale]/tenders/page.tsx
index 56d3a89..4742e65 100644
--- a/src/app/[locale]/tenders/page.tsx
+++ b/src/app/[locale]/tenders/page.tsx
@@ -4,10 +4,16 @@ import React from "react";
const Tenders = () => {
return (
-
-
-
-
+
+
+
+
+
+
);
};
diff --git a/src/entities/TenderCard.tsx b/src/entities/TenderCard.tsx
new file mode 100644
index 0000000..6703303
--- /dev/null
+++ b/src/entities/TenderCard.tsx
@@ -0,0 +1,47 @@
+import { Title } from "@/shared/ui";
+import React from "react";
+
+interface Props {
+ id: number;
+ id_of_card: string;
+ data_rk: string;
+ name_of_organization: string;
+ type_of_buy: string;
+ name_of_buy: string;
+ date_of_publication_datetime: string;
+ date_of_offer_datetime: string;
+ current_timestamp: string;
+}
+const TenderCard: React.FC = ({
+ id,
+ id_of_card,
+ data_rk,
+ name_of_organization,
+ type_of_buy,
+ name_of_buy,
+ date_of_publication_datetime,
+ date_of_offer_datetime,
+ current_timestamp,
+}: Props) => {
+ return (
+
+ );
+};
+
+export default TenderCard;
diff --git a/src/widgets/TendersList/TendersList.tsx b/src/widgets/TendersList/TendersList.tsx
index 44e0b3d..e3764a4 100644
--- a/src/widgets/TendersList/TendersList.tsx
+++ b/src/widgets/TendersList/TendersList.tsx
@@ -2,6 +2,7 @@
import React, { useEffect, useState } from "react";
import { useTendersStore } from "./tendersStore";
import { data } from "autoprefixer";
+import TenderCard from "@/entities/TenderCard";
interface Props {}
const TendersList = () => {
@@ -11,8 +12,27 @@ const TendersList = () => {
useEffect(() => {
getTenders(ordering);
}, []);
- console.log(data);
- return df
;
+ console.log(tenders);
+ return (
+
+
+ {tenders?.results?.map((tender) => (
+
+ ))}
+
+
+ );
};
export default TendersList;
diff --git a/src/widgets/TendersList/tendersStore.ts b/src/widgets/TendersList/tendersStore.ts
index 8c274eb..fdeea86 100644
--- a/src/widgets/TendersList/tendersStore.ts
+++ b/src/widgets/TendersList/tendersStore.ts
@@ -22,8 +22,8 @@ export const useTendersStore = create((set) => ({
try {
set({ isLoading: true });
- const res = await apiInstance.get(`/procurements/?ordering${ordering}`);
- set({ data: res.data.results });
+ const res = await apiInstance.get(`/procurements/?ordering=${ordering}`);
+ set({ data: res.data });
} catch (error: unknown) {
if (error instanceof AxiosError) {
set({ error: error.message });