Skip to content

Commit

Permalink
Actually fix SSR warning icon
Browse files Browse the repository at this point in the history
- fix missing renames
  • Loading branch information
cee-chen committed Mar 8, 2023
1 parent 9b2eb8f commit 3e75f2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/security/server/prompt_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
EuiProvider,
} from '@elastic/eui';
// @ts-expect-error no definitions in component folder
import { icon as EuiIconAlert } from '@elastic/eui/lib/components/icon/assets/warning';
import { icon as EuiIconWarning } from '@elastic/eui/lib/components/icon/assets/warning';
// @ts-expect-error no definitions in component folder
import { appendIconComponentCache } from '@elastic/eui/lib/components/icon/icon';
import createCache from '@emotion/cache';
Expand All @@ -30,11 +30,11 @@ import { I18nProvider } from '@kbn/i18n-react';
import UiSharedDepsNpm from '@kbn/ui-shared-deps-npm';
import * as UiSharedDepsSrc from '@kbn/ui-shared-deps-src';

// Preload the alert icon used by `EuiEmptyPrompt` to ensure that it's loaded
// Preload the warning icon used by `EuiEmptyPrompt` to ensure that it's loaded
// in advance the first time this page is rendered server-side. If not, the
// icon svg wouldn't contain any paths the first time the page was rendered.
appendIconComponentCache({
alert: EuiIconAlert,
warning: EuiIconWarning,
});

const emotionCache = createCache({ key: 'eui' });
Expand Down

0 comments on commit 3e75f2b

Please sign in to comment.