phpapi not ready
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import React, { ChangeEvent, MouseEventHandler, useContext, useState } from 'react'
|
||||
import { Link } from 'react-router-dom';
|
||||
import { UserCtx, UserCtxT, DogT, Axios, ResponseT, TUser } from '../context/UserContext';
|
||||
import { UserCtx, UserCtxT, DogT, ResponseT, TUser } from '../context/UserContext';
|
||||
import {Axios, updateQR} from '../services/PhpApi';
|
||||
import Checkbox from './Checkbox';
|
||||
import Img from './Img';
|
||||
import './Qr.css';
|
||||
@ -13,7 +14,7 @@ type ListItemT =
|
||||
|
||||
export default function Qr()
|
||||
{
|
||||
const { user, updateQR } = useContext<UserCtxT | null>(UserCtx) as UserCtxT;
|
||||
const { user } = useContext<UserCtxT | null>(UserCtx) as UserCtxT;
|
||||
const [dog, setDog] = useState<ResponseT | any>({}); // local dog not the dog in UserContext
|
||||
const [width, setWidth] = useState(2.4);
|
||||
const [height, setHeight] = useState(3.7);
|
||||
|
||||
Reference in New Issue
Block a user