Skip to content

Commit f7ea5bf

Browse files
committed
Run prettier
1 parent 6c27bf2 commit f7ea5bf

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/SearchOrAskAiButton.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ import * as React from 'react'
1717
import { useEffect, Suspense, lazy } from 'react'
1818

1919
// Lazy load the modal component
20-
const SearchOrAskAiModal = lazy(() => import('./SearchOrAskAiModal').then(module => ({ default: module.SearchOrAskAiModal })))
20+
const SearchOrAskAiModal = lazy(() =>
21+
import('./SearchOrAskAiModal').then((module) => ({
22+
default: module.SearchOrAskAiModal,
23+
}))
24+
)
2125

2226
export const SearchOrAskAiButton = () => {
2327
const searchTerm = useSearchTerm()
@@ -92,11 +96,13 @@ export const SearchOrAskAiButton = () => {
9296
<EuiOverlayMask>
9397
<EuiFocusTrap onClickOutside={closeModal}>
9498
<EuiPanel role="dialog" css={positionCss}>
95-
<Suspense fallback={
96-
<div css={loadingCss}>
97-
<EuiLoadingSpinner size="xl" />
98-
</div>
99-
}>
99+
<Suspense
100+
fallback={
101+
<div css={loadingCss}>
102+
<EuiLoadingSpinner size="xl" />
103+
</div>
104+
}
105+
>
100106
<SearchOrAskAiModal />
101107
</Suspense>
102108
</EuiPanel>

0 commit comments

Comments
 (0)