(force) Update project: Added 60 new features and made various changes
{warning: this all chnaged}
This commit is contained in:
@@ -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>
|
||||
)
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user