Skip to content

Instantly share code, notes, and snippets.

@aycabas
Created March 30, 2023 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aycabas/6d77b7f466ba4c58261eefd08a75c1e3 to your computer and use it in GitHub Desktop.
Save aycabas/6d77b7f466ba4c58261eefd08a75c1e3 to your computer and use it in GitHub Desktop.
Sample Dashboard
import { Dashboard } from "../lib/Dashboard";
import { DevOps } from "../widgets/DevOpsWidget";
import { GithubIssues } from "../widgets/GitHubWidget";
import { oneColumn } from "../lib/Dashboard.styles";
export default class SampleDashboard extends Dashboard {
protected rowHeights(): string | undefined {
return "320px 400px";
}
protected columnWidths(): string | undefined {
return "11fr 5fr";
}
protected dashboardLayout(): undefined | JSX.Element {
return (
<>
<div style={oneColumn()}>
<DevOps />
<GithubIssues />
</div>
</>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment