Skip to content

Commit

Permalink
Remove new demo and prop, keeping animationDelay in the shorthand style
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Dec 19, 2019
1 parent b1aae3a commit 9c06323
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 61 deletions.
1 change: 0 additions & 1 deletion docs/pages/api/skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ You can learn more about the difference by [reading this guide](/guides/minimizi

| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| <span class="prop-name">animationDelay</span> | <span class="prop-type">number<br>&#124;&nbsp;string</span> | | Delays the animation of the skeleton. Useful when you have multiple skeletons, and need them to pulse out of phase. |
| <span class="prop-name">classes</span> | <span class="prop-type">object</span> | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. |
| <span class="prop-name">component</span> | <span class="prop-type">elementType</span> | <span class="prop-default">'div'</span> | The component used for the root node. Either a string to use a DOM element or a component. |
| <span class="prop-name">disableAnimate</span> | <span class="prop-type">bool</span> | <span class="prop-default">false</span> | If `true` the animation effect is disabled. |
Expand Down
24 changes: 0 additions & 24 deletions docs/src/pages/components/skeleton/Delay.js

This file was deleted.

24 changes: 0 additions & 24 deletions docs/src/pages/components/skeleton/Delay.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions docs/src/pages/components/skeleton/skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ The component supports 3 variants.
## Facebook example

{{"demo": "pages/components/skeleton/Facebook.js", "defaultCodeOpen": false, "bg": true}}

## Delay example

{{"demo": "pages/components/skeleton/Delay.js", "defaultCodeOpen": false}}
1 change: 0 additions & 1 deletion packages/material-ui-lab/src/Skeleton/Skeleton.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { OverridableComponent, OverrideProps } from '@material-ui/core/Overridab

export interface SkeletonTypeMap<P = {}, D extends React.ElementType = 'hr'> {
props: P & {
animationDelay?: string;
disableAnimate?: boolean;
height?: number | string;
variant?: 'text' | 'rect' | 'circle';
Expand Down
7 changes: 0 additions & 7 deletions packages/material-ui-lab/src/Skeleton/Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const styles = theme => ({

const Skeleton = React.forwardRef(function Skeleton(props, ref) {
const {
animationDelay,
classes,
className,
component: Component = 'div',
Expand All @@ -73,19 +72,13 @@ const Skeleton = React.forwardRef(function Skeleton(props, ref) {
style={{
width,
height,
animationDelay,
...other.style,
}}
/>
);
});

Skeleton.propTypes = {
/**
* Delays the animation of the skeleton.
* Useful when you have multiple skeletons, and need them to pulse out of phase.
*/
animationDelay: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
/**
* Override or extend the styles applied to the component.
* See [CSS API](#css) below for more details.
Expand Down

0 comments on commit 9c06323

Please sign in to comment.