|
|
|
@ -227,17 +227,17 @@ function Tab({ data, theme }) { |
|
|
|
|
<View style={tw("flex w-full p-4")}> |
|
|
|
|
{dataType === "all" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.voice ? <Voice data={data.voice} theme={theme} /> : null} |
|
|
|
|
{data.video ? <Video data={data.video} theme={theme} /> : null} |
|
|
|
|
{data.ppt ? <PPT data={data.ppt} theme={theme} /> : null} |
|
|
|
|
{data.pdf ? <PDF data={data.pdf} theme={theme} /> : null} |
|
|
|
|
{data.links ? <Links data={data.links} theme={theme} /> : null} |
|
|
|
|
{data?.voice ? <Voice data={data?.voice} theme={theme} /> : null} |
|
|
|
|
{data?.video ? <Video data={data?.video} theme={theme} /> : null} |
|
|
|
|
{data?.ppt ? <PPT data={data?.ppt} theme={theme} /> : null} |
|
|
|
|
{data?.pdf ? <PDF data={data?.pdf} theme={theme} /> : null} |
|
|
|
|
{data?.links ? <Links data={data?.links} theme={theme} /> : null} |
|
|
|
|
</> |
|
|
|
|
) : null} |
|
|
|
|
{dataType === "voice" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.voice ? ( |
|
|
|
|
<Voice data={data.voice} theme={theme} /> |
|
|
|
|
{data?.voice ? ( |
|
|
|
|
<Voice data={data?.voice} theme={theme} /> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
@ -254,8 +254,8 @@ function Tab({ data, theme }) { |
|
|
|
|
) : null} |
|
|
|
|
{dataType === "video" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.video ? ( |
|
|
|
|
<Video data={data.video} theme={theme} /> |
|
|
|
|
{data?.video ? ( |
|
|
|
|
<Video data={data?.video} theme={theme} /> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
@ -272,8 +272,8 @@ function Tab({ data, theme }) { |
|
|
|
|
) : null} |
|
|
|
|
{dataType === "ppt" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.ppt ? ( |
|
|
|
|
<PPT data={data.ppt} theme={theme} /> |
|
|
|
|
{data?.ppt ? ( |
|
|
|
|
<PPT data={data?.ppt} theme={theme} /> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
@ -290,8 +290,8 @@ function Tab({ data, theme }) { |
|
|
|
|
) : null} |
|
|
|
|
{dataType === "pdf" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.pdf ? ( |
|
|
|
|
<PDF data={data.pdf} theme={theme} /> |
|
|
|
|
{data?.pdf ? ( |
|
|
|
|
<PDF data={data?.pdf} theme={theme} /> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
@ -308,8 +308,8 @@ function Tab({ data, theme }) { |
|
|
|
|
) : null} |
|
|
|
|
{dataType === "links" ? ( |
|
|
|
|
<> |
|
|
|
|
{data.links ? ( |
|
|
|
|
<Links data={data.links} theme={theme} /> |
|
|
|
|
{data?.links ? ( |
|
|
|
|
<Links data={data?.links} theme={theme} /> |
|
|
|
|
) : ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|