documents added to the pages

This commit is contained in:
Kakabay 2022-12-15 22:00:56 +05:00
parent 2e42a06305
commit c6664334d7
5 changed files with 13 additions and 4 deletions

View File

@ -37,6 +37,7 @@ const DataChart = ({ lang }) => {
<div className="chart-tabs">
{tabData
? tabData.data.map((tab, index) => {
console.log(tab.title);
return index <= 2 ? (
<div
key={tab.id}

View File

@ -69,7 +69,9 @@ const Finance = ({ lang }) => {
{
docsData
? docsData.data.map((doc) => {
return <DocumentLink key={doc.id} title={doc.title} link={doc.file} />;
return doc.page === 'Финансовый мониторинг' ? (
<DocumentLink key={doc.id} title={doc.title} link={doc.file} />
) : null;
})
: '' //loader
}

View File

@ -105,7 +105,9 @@ export const Normative = ({ lang }) => {
{
docsData
? docsData.data.map((doc) => {
return <DocumentLink key={doc.id} title={doc.title} link={doc.file} />;
return doc.page === 'Нормативная база' ? (
<DocumentLink key={doc.id} title={doc.title} link={doc.file} />
) : null;
})
: '' //loader
}

View File

@ -123,7 +123,9 @@ export const Register = ({ lang }) => {
{
docsData
? docsData.data.map((doc) => {
return <DocumentLink key={doc.id} title={doc.title} link={doc.file} />;
return doc.page === 'Регистрация договоров' ? (
<DocumentLink key={doc.id} title={doc.title} link={doc.file} />
) : null;
})
: '' //loader
}

View File

@ -203,7 +203,9 @@ const Trade = ({ lang }) => {
{
docsData
? docsData.data.map((doc) => {
return <DocumentLink key={doc.id} title={doc.title} link={doc.file} />;
return doc.page === 'Биржевые торги' ? (
<DocumentLink key={doc.id} title={doc.title} link={doc.file} />
) : null;
})
: '' //loader
}