You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
940 B
35 lines
940 B
import React, { Component } from "react"; |
|
|
|
import "./index.scss"; |
|
export default function QRImage(props) { |
|
const list = props.data.fileIds.split(","); |
|
console.log(list); |
|
return ( |
|
<> |
|
{window.innerWidth < 1000 ? ( |
|
(list.length === 1 ? ( |
|
<div className="mobile-qr-image d-flex"> |
|
<img |
|
className="mobile-qr-image__single" |
|
src={`https://dnvn.ir/api/v1/file/${list[0]}`} |
|
/> |
|
</div> |
|
) : null, |
|
list.length !== 2 ? ( |
|
<div className="mobile-qr-image d-flex"> |
|
<img |
|
className="mobile-qr-image__two" |
|
src={`https://dnvn.ir/api/v1/file/${list[0]}`} |
|
/> |
|
<img |
|
className="mobile-qr-image__two" |
|
src={`https://dnvn.ir/api/v1/file/${list[1]}`} |
|
/> |
|
</div> |
|
) : null) |
|
) : ( |
|
<p>reza</p> |
|
)} |
|
</> |
|
); |
|
}
|
|
|