Skip to content

Commit

Permalink
move font-logos css import in hopes to defer loading till the css i…
Browse files Browse the repository at this point in the history
…s needed
  • Loading branch information
bnussman committed Mar 14, 2024
1 parent 1fe6b29 commit 4dfb984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/manager/src/components/DistributionIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'font-logos/assets/font-logos.css';
import React from 'react';

import type { Image } from '@linode/api-v4';
Expand Down
7 changes: 3 additions & 4 deletions packages/manager/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import CssBaseline from '@mui/material/CssBaseline';
import 'font-logos/assets/font-logos.css';
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom';

Expand All @@ -16,10 +15,10 @@ import { setupInterceptors } from 'src/request';
import { storeFactory } from 'src/store';

import { App } from './App';
import { LinodeThemeWrapper } from './LinodeThemeWrapper';
import NullComponent from './components/NullComponent';
import { loadDevTools, shouldEnableDevTools } from './dev-tools/load';
import './index.css';
import { LinodeThemeWrapper } from './LinodeThemeWrapper';
import { queryClientFactory } from './queries/base';

const queryClient = queryClientFactory();
Expand Down

0 comments on commit 4dfb984

Please sign in to comment.