mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
Update React imports
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import './ad.css';
|
||||
|
||||
const Ad: React.FC<{}> = () => {
|
||||
const containerRef = useRef<HTMLDivElement | null>(null);
|
||||
const containerRef = React.useRef<HTMLDivElement | null>(null);
|
||||
const source = 'https://cdn.carbonads.com/carbon.js?serve=CE7I6KQL&placement=csslayoutio';
|
||||
|
||||
useEffect(() => {
|
||||
React.useEffect(() => {
|
||||
// Ignore if the code is reached in snapping mode
|
||||
if (navigator.userAgent === 'ReactSnap') {
|
||||
return;
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
import Pattern from '../constants/Pattern';
|
||||
import CoverCard from './CoverCard';
|
||||
|
Reference in New Issue
Block a user