1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-26 15:24:58 +02:00

Refactor details view

This commit is contained in:
Phuoc Nguyen
2019-11-24 22:27:52 +07:00
parent 59c65079a3
commit 24d36dc1c6
38 changed files with 41 additions and 256 deletions

View File

@@ -1,5 +1,7 @@
import React, { useState } from 'react';
import SampleCode from '../components/SampleCode';
const BrowserFrame = ({ content, source }) => {
const [isContentActive, setContentActive] = useState(true);
const flip = () => setContentActive(isActive => !isActive);
@@ -42,7 +44,7 @@ const BrowserFrame = ({ content, source }) => {
WebkitBackfaceVisibility: 'hidden',
}}
>
{source}
<SampleCode lang="html" code={source} />
</div>
</div>
</div>