Skip to content

Commit

Permalink
🐛 Fix final bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mamadOuologuem committed Feb 4, 2020
1 parent 55566dc commit a27cb60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Block.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* This component display a block with a background color and containing a geometric shape
* @param size The size of the block (a number from 0 to 12)
* @param backgroundColor The background color of the block
* @param shape The shape ("cirlce", "rectangle", "ellipse", "line" or "triangle") of
* @param shape The shape ("circle", "rectangle", "ellipse", "line" or "triangle") of
* the Geometric Objects contained in the block
* @param shapeColor The color of shape contained in the block
* Available colors are located in 'src/constants.js'
Expand Down
8 changes: 4 additions & 4 deletions src/components/ui/GeometricObjects.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* GeometricObjects component documentation:
* This component display a geometric shape
* @param shape The shape ("cirlce", "rectangle", "ellipse", "line" or "triangle") to display
* @param shape The shape ("circle", "rectangle", "ellipse", "line" or "triangle") to display
* @param shapeColor The color of shape
* Available colors are located in 'src/constants.js'
* You can provide more parameters based on http://rsamec.github.io/react-shapes/ documentation
Expand All @@ -13,7 +13,7 @@ import { Circle, Rectangle, Ellipse, Line, Triangle } from 'react-shapes';
import { colors } from '../../constants';

const defaultsProps = {
cirlce: {
circle: {
r: 125,
},
rectangle: {
Expand All @@ -37,7 +37,7 @@ const defaultsProps = {
},
}

const GeometricObjects = ({ shape = 'cirlce', shapeColor, ...props }) => {
const GeometricObjects = ({ shape = 'circle', shapeColor, ...props }) => {
const defaultProps = defaultsProps[shape];
const shapeProps = Object.assign(
{},
Expand All @@ -49,7 +49,7 @@ const GeometricObjects = ({ shape = 'cirlce', shapeColor, ...props }) => {
props,
);
switch (shape) {
case 'cirlce':
case 'circle':
return <Circle {...shapeProps} />
case 'rectangle':
return <Rectangle {...shapeProps} />
Expand Down

0 comments on commit a27cb60

Please sign in to comment.