Skip to content

Commit

Permalink
add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan LE MEILLAT committed Jun 28, 2024
1 parent b17a49d commit adb0cad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import VCardForm from './Components/Forms/VCard'
import WiFiForm from './Components/Forms/WiFi'
import Footer from './Components/Footer'
import Download from './Components/Download'
import { debug } from 'util'

const tabs = [
{
Expand All @@ -37,6 +36,7 @@ const tabs = [
}
]

const defaultData = 'https://lesailesdumontblanc.com'
const embeddedLogos = [
{ path: '/admb.svg', label: 'Mini Admb light blue' },
{ path: '/admb-navy.svg', label: 'Mini Admb navy blue' },
Expand Down Expand Up @@ -195,6 +195,7 @@ function App() {
useEffect(() => {
const image = options.removeBrand ? '' : options.image
qrCode.update({
data: defaultData,
qrOptions: {
errorCorrectionLevel: options.errorCorrectionLevel,
},
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Forms/Url.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppContext } from '../../Context'
import Submit from '../Submit'

function UrlForm() {
const [values, setValues] = useState('')
const [values, setValues] = useState('https://lesailesdumontblanc.com')
const { qrCode } = useContext(AppContext)

const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit adb0cad

Please sign in to comment.