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

Commit

Permalink
Merge pull request #111 from Ultimaker/CL-1013-upper-the-case-aspectr…
Browse files Browse the repository at this point in the history
…atiocontainer

uppercase
  • Loading branch information
Alan authored Dec 5, 2018
2 parents 275bf32 + b59eaf9 commit fd3b713
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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,10 +37,10 @@ export const aspectRatioContainer: React.StatelessComponent<aspectRatioContainer
);
};

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

aspectRatioContainer.displayName = "AspectRatioContainer";
AspectRatioContainer.displayName = "AspectRatioContainer";

export default aspectRatioContainer;
export default AspectRatioContainer;

0 comments on commit fd3b713

Please sign in to comment.