Skip to content

Commit

Permalink
chore: format and fix createTearsheet avt
Browse files Browse the repository at this point in the history
  • Loading branch information
devadula-nandan committed Dec 11, 2024
1 parent cabc74a commit 9a6a1d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion e2e/components/CreateFlows/CreateTearsheet-test.avt.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ test.describe('CreateTearsheet @avt', () => {
await page.keyboard.press('Enter');
await page.screenshot({ animations: 'disabled' });
// Expect the previous page first element to be focused
await expect(step1Input1).toBeFocused();
await expect(learnMoreAnchor).toBeFocused();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,10 @@ export default {
};

// eslint-disable-next-line react/prop-types
const SlideOverTemplate = ({
minimalContent,
actions,
aiLabel,
slug,
decorator,
...args
}, context) => {
const SlideOverTemplate = (
{ minimalContent, actions, aiLabel, slug, decorator, ...args },
context
) => {
const [open, setOpen] = useState(context.viewMode !== 'docs');
const testRef = useRef(undefined);
const buttonRef = useRef(undefined);
Expand Down Expand Up @@ -566,7 +562,10 @@ const FirstElementDisabledTemplate = (
};

// eslint-disable-next-line react/prop-types
const StepTemplate = ({ actions, aiLabel, slug, decorator, ...args }, context) => {
const StepTemplate = (
{ actions, aiLabel, slug, decorator, ...args },
context
) => {
const [open, setOpen] = useState(context.viewMode !== 'docs');
const [currentStep, setCurrentStep] = useState(0);
const buttonRef = useRef(undefined);
Expand Down Expand Up @@ -602,7 +601,10 @@ const StepTemplate = ({ actions, aiLabel, slug, decorator, ...args }, context) =
};

// eslint-disable-next-line react/prop-types
const SlideInTemplate = ({ actions, aiLabel, slug, decorator, ...args }, context) => {
const SlideInTemplate = (
{ actions, aiLabel, slug, decorator, ...args },
context
) => {
const [open, setOpen] = useState(context.viewMode !== 'docs');
const buttonRef = useRef(undefined);

Expand Down

0 comments on commit 9a6a1d3

Please sign in to comment.