From e5f6e8f85e9d1d1cb9c216f878a28297c86a94ae Mon Sep 17 00:00:00 2001 From: YongZL <1679963578@qq.com> Date: Wed, 1 Nov 2023 10:58:24 +0800 Subject: [PATCH] feat: ui --- src/components/common/productQrcode.tsx | 11 ++++++++--- src/components/svgr/Border.js | 22 ++++++++++++++++++++++ src/components/svgr/index.js | 1 + 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 src/components/svgr/Border.js diff --git a/src/components/common/productQrcode.tsx b/src/components/common/productQrcode.tsx index e76b953..c010802 100644 --- a/src/components/common/productQrcode.tsx +++ b/src/components/common/productQrcode.tsx @@ -1,6 +1,7 @@ import classNames from 'classnames'; import QRCode from 'qrcode.react'; -import { Carbon3Name, DisableQrcode } from '../svgr'; +import { Border, Carbon3Name, DisableQrcode } from '../svgr'; +import { Fragment } from 'react'; export function ProductQrcode(p: any) { const { qrText, className, qrcodeDisable, data, name = 'Certified' } = p; @@ -20,10 +21,14 @@ export function ProductQrcode(p: any) {

{qrText ? qrText : `Product Carbon Footprint ${name}`}

+ + {qrcodeDisable ? ( - + ) : ( - + <> + + )} diff --git a/src/components/svgr/Border.js b/src/components/svgr/Border.js new file mode 100644 index 0000000..9ef2d96 --- /dev/null +++ b/src/components/svgr/Border.js @@ -0,0 +1,22 @@ +import * as React from 'react'; +const SvgBorder = (props) => ( + + + + + + +); +export default SvgBorder; diff --git a/src/components/svgr/index.js b/src/components/svgr/index.js index 754f83e..2bdd9a5 100644 --- a/src/components/svgr/index.js +++ b/src/components/svgr/index.js @@ -40,3 +40,4 @@ export { default as VerifiedIcon } from './VerifiedIcon'; export { default as Nft } from './Nft'; export { default as GGX } from './Ggx'; export { default as Detail } from './Detail'; +export { default as Border } from './Border';