Skip to content

Commit

Permalink
[core] Add newFeature to the typing of MuiPage (mui#34511)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored and felipe.richter committed Dec 6, 2022
1 parent d591f9f commit b8c7351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit b8c7351

Please sign in to comment.