Skip to content

Commit

Permalink
Fixup useState import
Browse files Browse the repository at this point in the history
  • Loading branch information
PaitoAnderson committed Jul 6, 2021
1 parent d636c84 commit e369242
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/product/[permalink].js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react';
import React, { useEffect, useState } from 'react';
import commerce from '../../lib/commerce';
import { Collapse } from 'react-collapse';
import Head from 'next/head';
Expand All @@ -23,10 +23,10 @@ const detailView = `<p>
export default function Product() {
const router = useRouter();
const { permalink } = router.query;
const [showShipping, setShowShipping] = React.useState(false);
const [showDetails, setShowDetails] = React.useState(false);
const [product, setProduct] = React.useState(null);
const [loading, setLoading] = React.useState(true);
const [showShipping, setShowShipping] = useState(false);
const [showDetails, setShowDetails] = useState(false);
const [product, setProduct] = useState(null);
const [loading, setLoading] = useState(true);

const toggleShipping = () => {
setShowShipping(!showShipping);
Expand Down

0 comments on commit e369242

Please sign in to comment.