(force) Update project: Added 60 new features and made various changes

{warning: this all chnaged}
This commit is contained in:
alij
2024-08-26 23:28:34 +03:30
parent 69d728485e
commit b0c9276e52
54 changed files with 1452 additions and 170 deletions

View File

@@ -90,7 +90,12 @@ const Learn = ({ activeTutorial }: LearnProps) => {
{/* Render learning items */}
{data?.data?.result?.learning.map(
(i: { id: string; title: string; medias: string[] }) => (
(i: {
id: string;
title: string;
medias: string[];
url_file: string;
}) => (
<div
key={i.id}
className="relative w-full h-full flex flex-col justify-center items-center"
@@ -125,6 +130,14 @@ const Learn = ({ activeTutorial }: LearnProps) => {
);
})}
</div>
{i.url_file && (
<>
<Button extra="!mb-4" onClick={() => saveAs(i.url_file)}>
دانلود برنامه
</Button>
</>
)}
<hr className="border-2 w-full rounded-md my-5 border-gray-800" />
</div>
)
)}