Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Add newFeature to the typing of MuiPage #34511

Merged
merged 2 commits into from Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/data/material/pages.ts
@@ -1,6 +1,7 @@
import pagesApi from './pagesApi';
import { MuiPage } from '../../src/MuiPage';

const pages = [
const pages: MuiPage[] = [
{
pathname: '/material-ui/getting-started',
icon: 'DescriptionIcon',
Expand Down
5 changes: 5 additions & 0 deletions docs/src/MuiPage.ts
Expand Up @@ -32,6 +32,11 @@ export interface MuiPage {
* Overrides the default page title.
*/
title?: string;
/**
* Indicates if the feature has been recently released.
* @default false
*/
newFeature?: boolean;
}

export interface OrderedMuiPage extends MuiPage {
Expand Down