mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-11 00:24:12 +02:00
Update React imports
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import Circle from '../../placeholders/Circle';
|
||||
import Frame from '../../placeholders/Frame';
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import * as React from 'react';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import Pattern from '../../constants/Pattern';
|
||||
|
||||
@@ -11,7 +11,7 @@ import DetailsLayout from '../../layouts/DetailsLayout';
|
||||
import BrowserFrame from '../../placeholders/BrowserFrame';
|
||||
|
||||
const Details: React.FC<{}> = () => {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const [visible, setVisible] = React.useState(false);
|
||||
const toggle = () => setVisible((v) => !v);
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user