Skip to content

Commit

Permalink
Fix: remove useState and unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
antidoid committed Mar 2, 2024
1 parent e8ef418 commit f026988
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { Generator, QRCode } from "./components";
import { Header, Hero } from "./containers";
import "./App.css";
import Footer from "./containers/Footer";
import { useEffect, useState } from "react";
import { useState } from "react";

function App() {
const [requesturl, setRequestUrl] = useState("");
const [imgUrl, setImgUrl] = useState("");

const [qrCodeUrl, setQRCodeUrl] = useState("");
Expand All @@ -25,8 +24,9 @@ function App() {
});

try {
const requesturl = `${import.meta.env.VITE_FUNCTION_URL
}?url=${qrCodeUrl}&color=${color}&style=${style}
const requesturl = `${
import.meta.env.VITE_FUNCTION_URL
}?url=${qrCodeUrl}&color=${color}&style=${style}
&code=${import.meta.env.VITE_FUNCTION_API_KEY}`;
const res = await fetch(requesturl);
const { qr_code_url: imgLink } = await res.json();
Expand Down

0 comments on commit f026988

Please sign in to comment.