Skip to content

Commit

Permalink
fix(panel-plugin): don't load CSS file since it's loaded using css mo…
Browse files Browse the repository at this point in the history
…dules (#891)
  • Loading branch information
eh-am authored Feb 24, 2022
1 parent 8856af1 commit 183eaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions cypress/integration/panel/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ describe('smoke', () => {
cy.findByTestId('flamegraph-canvas').matchImageSnapshot(
'grafana-simple-golang-app-cpu'
);

cy.findByTestId('flamegraph-canvas').should('exist');
});
});
7 changes: 0 additions & 7 deletions packages/pyroscope-panel-plugin/src/module.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
/* eslint-disable import/prefer-default-export */
import { PanelPlugin } from '@grafana/data';
import { loadPluginCss } from '@grafana/runtime';
import { SimpleOptions } from './types';
import { SimplePanel } from './SimplePanel';
import '@pyroscope/flamegraph/dist/index.css';
import './styles.css';

// We don't support light mode yet
loadPluginCss({
dark: 'plugins/pyroscope-panel/module.css',
light: 'plugins/pyroscope-panel/module.css',
});

export const plugin = new PanelPlugin<SimpleOptions>(
SimplePanel
).setPanelOptions((builder) => {
Expand Down

0 comments on commit 183eaa0

Please sign in to comment.