Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit e369242

Browse files
committed
Fixup useState import
1 parent d636c84 commit e369242

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pages/product/[permalink].js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from 'react';
1+
import React, { useEffect, useState } from 'react';
22
import commerce from '../../lib/commerce';
33
import { Collapse } from 'react-collapse';
44
import Head from 'next/head';
@@ -23,10 +23,10 @@ const detailView = `<p>
2323
export default function Product() {
2424
const router = useRouter();
2525
const { permalink } = router.query;
26-
const [showShipping, setShowShipping] = React.useState(false);
27-
const [showDetails, setShowDetails] = React.useState(false);
28-
const [product, setProduct] = React.useState(null);
29-
const [loading, setLoading] = React.useState(true);
26+
const [showShipping, setShowShipping] = useState(false);
27+
const [showDetails, setShowDetails] = useState(false);
28+
const [product, setProduct] = useState(null);
29+
const [loading, setLoading] = useState(true);
3030

3131
const toggleShipping = () => {
3232
setShowShipping(!showShipping);

0 commit comments

Comments
 (0)