Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwild committed Jun 3, 2020
1 parent 0a2a504 commit 7a39762
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/plugins/dashboard/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ export class DashboardPlugin
}, [toggleChrome]);
};

const ExitFullScreenButton: React.FC<ExitFullScreenButtonProps & {
toggleChrome: boolean;
}> = ({ toggleChrome, ...props }) => {
const ExitFullScreenButton: React.FC<
ExitFullScreenButtonProps & {
toggleChrome: boolean;
}
> = ({ toggleChrome, ...props }) => {
useHideChrome({ toggleChrome });
return <ExitFullScreenButtonUi {...props} />;
};
Expand Down Expand Up @@ -299,7 +301,7 @@ export class DashboardPlugin
kibanaLegacy.forwardApp(
DashboardConstants.DASHBOARD_ID,
DashboardConstants.DASHBOARDS_ID,
path => {
(path) => {
const [, id, tail] = /dashboard\/?(.*?)($|\?.*)/.exec(path) || [];
if (!id && !tail) {
// unrecognized sub url
Expand All @@ -316,7 +318,7 @@ export class DashboardPlugin
kibanaLegacy.forwardApp(
DashboardConstants.DASHBOARDS_ID,
DashboardConstants.DASHBOARDS_ID,
path => {
(path) => {
const [, tail] = /(\?.*)/.exec(path) || [];
// carry over query if it exists
return `#/list${tail || ''}`;
Expand Down

0 comments on commit 7a39762

Please sign in to comment.