From 0b06f7b55ceaa7a3b20cbf506335078c00119ee4 Mon Sep 17 00:00:00 2001 From: Nishi Kaza Date: Tue, 30 Jul 2019 13:20:49 -0700 Subject: [PATCH] code review fixes in Example app base --- .../src/components/ExampleCard/ExampleCard.styles.ts | 1 - .../src/components/ExampleCard/ExampleCard.tsx | 4 ++-- .../src/components/Page/sections/ExamplesSection.tsx | 10 +++++----- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/example-app-base/src/components/ExampleCard/ExampleCard.styles.ts b/packages/example-app-base/src/components/ExampleCard/ExampleCard.styles.ts index 9f84b46103cd8..dab6ca1753d6d 100644 --- a/packages/example-app-base/src/components/ExampleCard/ExampleCard.styles.ts +++ b/packages/example-app-base/src/components/ExampleCard/ExampleCard.styles.ts @@ -146,7 +146,6 @@ export const getStyles: IStyleFunction = const { className, examples, exampleKnobs, sectionName, readableSectionName, style, id } = props; const [activeEditorTitle, setActiveEditorTitle] = React.useState(''); - const handleEditorToggle = (card: string) => { - setActiveEditorTitle(card); - }; - return (
@@ -32,7 +28,11 @@ export const ExamplesSection: React.StatelessComponent = const { view, ...exampleProps } = example; return (
- + {view}