Skip to content

Commit 4d55f26

Browse files
committed
chore: Cleanup multi-layout-with-hidden-instances-iframe.page.tsx
1 parent 9205dc6 commit 4d55f26

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

pages/app-layout/multi-layout-with-hidden-instances-iframe.page.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
3-
import React, { useEffect, useRef, useState } from 'react';
3+
import React, { useRef, useState } from 'react';
44

55
import AppLayout from '~components/app-layout';
66
import BreadcrumbGroup from '~components/breadcrumb-group';
@@ -18,14 +18,6 @@ import labels from './utils/labels';
1818

1919
function createView(name: string) {
2020
return function View() {
21-
const [count, setCount] = useState(0);
22-
23-
useEffect(() => {
24-
console.log('mount ', name);
25-
26-
return () => console.log('unmount ', name);
27-
}, []);
28-
2921
return (
3022
<AppLayout
3123
data-testid="secondary-layout"
@@ -53,9 +45,6 @@ function createView(name: string) {
5345
</Link>
5446

5547
<div>Page content: {name}</div>
56-
57-
<button onClick={() => setCount(count + 1)}>increment count</button>
58-
{count}
5948
</SpaceBetween>
6049
}
6150
tools={<Tools>Tools content: {name}</Tools>}

0 commit comments

Comments
 (0)