Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
deprecating Layout and ItemLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
bmdalex committed Apr 2, 2019
1 parent 14825f7 commit 1a2ac8a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/src/examples/components/ItemLayout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import * as React from 'react'
import { Alert } from '@stardust-ui/react/'

import Types from './Types'
import Content from './Content'
import Rtl from './Rtl'

const ItemLayoutExamples = () => (
<div>
<Alert warning>This component is deprecated</Alert>
<Types />
<Content />
<Rtl />
Expand Down
3 changes: 3 additions & 0 deletions docs/src/examples/components/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import * as React from 'react'
import { Alert } from '@stardust-ui/react/'

import Types from './Types'
import Variations from './Variations'

const LayoutExamples = () => (
<div>
<Alert warning>This component is deprecated</Alert>
<Types />
<Variations />
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/ItemLayout/ItemLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface ItemLayoutProps extends UIComponentProps, ContentComponentProps
}

/**
* The Item Layout handles layout styles for menu items, list items and other similar item templates.
* (DEPRECATED) The Item Layout handles layout styles for menu items, list items and other similar item templates.
*/
class ItemLayout extends UIComponent<ReactProps<ItemLayoutProps>, any> {
static create: Function
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface LayoutProps extends UIComponentProps {
}

/**
* A layout is a utility for arranging the content of a component.
* (DEPRECATED) A layout is a utility for arranging the content of a component.
*/
class Layout extends UIComponent<ReactProps<LayoutProps>, any> {
static className = 'ui-layout'
Expand Down

0 comments on commit 1a2ac8a

Please sign in to comment.