fix
This commit is contained in:
1 parent
4c11bc460c
commit
9dda476c16
6 files changed
+30
-13
No files matched your search
@@ -2,7 +2,7 @@ import { AxiosError } from "axios";
|
||||
import { apiInstance } from "@/shared/config/apiConfig";
|
||||
import { getServerSession } from "next-auth";
|
||||
import { authConfig } from "@/shared/config/authConfig";
|
||||
import { Title } from "@/shared/ui";
|
||||
import { Container, Title } from "@/shared/ui";
|
||||
import ProfileNav from "@/widgets/ProfileNav/ProfileNav";
|
||||
|
||||
const Profile = async ({
|
||||
@@ -33,11 +33,11 @@ const Profile = async ({
|
||||
const data = await getProfile();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<Title text="Личный кабинет" className="mb-[50px]" />
|
||||
<ProfileNav report_count={data?.report_count as number} />
|
||||
|
||||
{children}
|
||||
<div className="bg-[#FAFCFF]">
|
||||
<Container className="flex flex-col">
|
||||
<ProfileNav report_count={data?.report_count as number} />
|
||||
{children}
|
||||
</Container>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { apiInstance } from "@/shared/config/apiConfig";
|
||||
import { ITenders } from "@/shared/types/tenders-type";
|
||||
import { Container, Title } from "@/shared/ui";
|
||||
import Link from "next/link";
|
||||
|
||||
const TenderDetails = async ({
|
||||
params,
|
||||
@@ -11,7 +12,7 @@ const TenderDetails = async ({
|
||||
const response = await apiInstance.get<ITenders>(
|
||||
`/procurements/${params.id}/`
|
||||
);
|
||||
console.log(response.data);
|
||||
console.log(response.data.saved_files);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
@@ -129,7 +130,12 @@ const TenderDetails = async ({
|
||||
text="Больше информации в PDF"
|
||||
className="text-[18px] text-gray-500 w-[242px]"
|
||||
/>
|
||||
<Title text={data.more_info_pdf} className="text-[20px] leading-8" />
|
||||
<Link href={data.more_info_pdf} target="blank">
|
||||
<Title
|
||||
text={data.more_info_pdf}
|
||||
className="text-[20px] leading-8"
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user