From b77601abca3bdbc0a1734fdf3a9d57dbb78ef42c Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Tue, 23 Jan 2024 10:45:50 -0800 Subject: [PATCH] Rename DashboardPage to QuicksightDashboardPage --- src/components/QuicksightDashboardPage.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/QuicksightDashboardPage.tsx b/src/components/QuicksightDashboardPage.tsx index 20f1114ea..32054933d 100644 --- a/src/components/QuicksightDashboardPage.tsx +++ b/src/components/QuicksightDashboardPage.tsx @@ -7,7 +7,8 @@ import Footer from "./Footer"; import title from "../utils/title"; import QuicksightDashboard from "./QuicksightDashboard"; -export interface QuicksightDashboardPageProps extends React.Props { +export interface QuicksightDashboardPageProps + extends React.Props { params: { library?: string; }; @@ -18,7 +19,9 @@ export interface QuicksightDashboardPageContext { } /** Page holds quicksight dashboards. */ -export default class DashboardPage extends React.Component { +export default class QuicksightDashboardPage extends React.Component< + QuicksightDashboardPageProps +> { context: QuicksightDashboardPageContext; static contextTypes: React.ValidationMap = { @@ -29,21 +32,19 @@ export default class DashboardPage extends React.Component this.props.params.library, }; } - render(): JSX.Element { const { library } = this.props.params; return (
- +