diff --git a/src/App.tsx b/src/App.tsx index 1772ad9..24144a9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,6 @@ /* eslint-disable jsx-a11y/label-has-associated-control */ import React, { useState, useEffect, useRef, useContext, useReducer } from 'react' -import { DotType, CornerSquareType, CornerDotType } from "@liquid-js/qr-code-styling" +import { DotType, CornerSquareType, CornerDotType, ShapeType } from "@liquid-js/qr-code-styling" import { AppContext } from './Context' import Header from './Components/Header' import Tabs from './Components/Tabs' @@ -51,6 +51,7 @@ const embeddedLogos = [ const defaultBrand = '/admb.svg' interface Options { + shape?: ShapeType, size?: number removeBrand?: boolean image?: string @@ -65,6 +66,7 @@ interface Options { } const initialOptions: Options = { + shape: ShapeType.square, size: 1000, removeBrand: false, image: defaultBrand, @@ -204,6 +206,7 @@ function App() { qrOptions: { errorCorrectionLevel: options.errorCorrectionLevel, }, + shape: options.shape, width: options.size, height: options.size, image: image, @@ -347,6 +350,25 @@ function App() {
+
+ +
+ +
+
+