Skip to content

Commit 97091ee

Browse files
committed
fix linting errors
1 parent afa521e commit 97091ee

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

packages/module/patternfly-docs/content/extensions/component-groups/examples/Deck/DeckExample.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint-disable no-console */
2-
import React, { FunctionComponent, useState } from 'react';
2+
import { FunctionComponent, useState } from 'react';
33
import Deck, { DeckButton } from '@patternfly/react-component-groups/dist/dynamic/Deck';
44
import { ButtonVariant } from '@patternfly/react-core';
55

66
export const BasicExample: FunctionComponent = () => {
7-
const [deckKey, setDeckKey] = useState(0);
7+
const [ deckKey, setDeckKey ] = useState(0);
88

99
// Simulated analytics function
1010
const trackEvent = (eventName, data) => {
@@ -29,7 +29,7 @@ export const BasicExample: FunctionComponent = () => {
2929
variant: ButtonVariant.primary,
3030
navigation: 'next',
3131
// Custom onClick for analytics - called before navigation
32-
onClick: () => trackEvent('deck_next_clicked', { from_page: 1 })
32+
onClick: () => trackEvent('deck_next_clicked', { fromPage: 1 })
3333
}
3434
] as DeckButton[]
3535
},
@@ -44,7 +44,7 @@ export const BasicExample: FunctionComponent = () => {
4444
children: 'Next',
4545
variant: ButtonVariant.primary,
4646
navigation: 'next',
47-
onClick: () => trackEvent('deck_next_clicked', { from_page: 2 })
47+
onClick: () => trackEvent('deck_next_clicked', { fromPage: 2 })
4848
}
4949
] as DeckButton[]
5050
},
@@ -60,7 +60,7 @@ export const BasicExample: FunctionComponent = () => {
6060
variant: ButtonVariant.primary,
6161
// Restart the deck for demo purposes
6262
onClick: () => {
63-
trackEvent('deck_completed', { total_pages: 3 });
63+
trackEvent('deck_completed', { totalPages: 3 });
6464
console.log('Deck completed! Restarting...');
6565
restartDeck();
6666
}

packages/module/patternfly-docs/content/extensions/component-groups/examples/Deck/ModalDeckExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable no-console */
2-
import React, { FunctionComponent, useState } from 'react';
2+
import { FunctionComponent, useState } from 'react';
33
import Deck, { DeckButton } from '@patternfly/react-component-groups/dist/dynamic/Deck';
44
import { ModalDeck } from '@patternfly/react-component-groups/dist/dynamic/ModalDeck';
55
import { Button, ButtonVariant } from '@patternfly/react-core';
66

77
export const ModalDeckExample: FunctionComponent = () => {
8-
const [isModalOpen, setIsModalOpen] = useState(false);
8+
const [ isModalOpen, setIsModalOpen ] = useState(false);
99

1010
const handleClose = () => {
1111
setIsModalOpen(false);

packages/module/patternfly-docs/content/extensions/component-groups/examples/Deck/OnboardingModalDeckDemo.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable no-console */
2-
import React, { FunctionComponent, useState } from 'react';
2+
import { FunctionComponent, useState } from 'react';
33
import Deck, { DeckButton } from '@patternfly/react-component-groups/dist/dynamic/Deck';
44
import { ModalDeck } from '@patternfly/react-component-groups/dist/dynamic/ModalDeck';
55
import { Button, ButtonVariant, Label, Title, Stack, StackItem, Content } from '@patternfly/react-core';
66

77
export const OnboardingModalDeckDemo: FunctionComponent = () => {
8-
const [isModalOpen, setIsModalOpen] = useState(false);
8+
const [ isModalOpen, setIsModalOpen ] = useState(false);
99

1010
const handleClose = () => {
1111
setIsModalOpen(false);
@@ -34,11 +34,11 @@ export const OnboardingModalDeckDemo: FunctionComponent = () => {
3434
<StackItem>
3535
<Title headingLevel="h2" size="2xl">Welcome to [Product Name]</Title>
3636
</StackItem>
37-
<StackItem>
38-
<Content component="p">
39-
Harness the full potential of the hybrid cloud, simply by asking.
40-
</Content>
41-
</StackItem>
37+
<StackItem>
38+
<Content component="p">
39+
Harness the full potential of the hybrid cloud, simply by asking.
40+
</Content>
41+
</StackItem>
4242
</Stack>
4343
),
4444
buttons: [

0 commit comments

Comments
 (0)