Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into small-fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan authored Dec 6, 2018
2 parents d95bbf8 + fd3b713 commit 09673bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/aspect_ratio_container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface aspectRatioContainerProps {
/**
* returns a copy of the content with modified classes, wrapped in containers to manage it's size
*/
export const aspectRatioContainer: React.StatelessComponent<aspectRatioContainerProps> = ({ aspectRatio, className, id, children }) => {
export const AspectRatioContainer: React.StatelessComponent<aspectRatioContainerProps> = ({ aspectRatio, className, id, children }) => {

const containerClasses = classNames('aspect-ratio-container', className);
const bottomPadding = 1 / aspectRatio * 100 + '%';
Expand All @@ -37,9 +37,10 @@ export const aspectRatioContainer: React.StatelessComponent<aspectRatioContainer
);
};

aspectRatioContainer.defaultProps = {
AspectRatioContainer.defaultProps = {
aspectRatio: 16 / 9
};

AspectRatioContainer.displayName = "AspectRatioContainer";

export default aspectRatioContainer;
export default AspectRatioContainer;

0 comments on commit 09673bc

Please sign in to comment.