From 8636e30f74a4d9ec34e99305ba54dd1ff36c21c8 Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Mon, 23 Mar 2020 15:04:44 -0300 Subject: [PATCH] create alignment props --- .../ui/src/components/TableCell/TableCell.jsx | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/platform/ui/src/components/TableCell/TableCell.jsx b/platform/ui/src/components/TableCell/TableCell.jsx index 30982abf3..75e99b2c4 100644 --- a/platform/ui/src/components/TableCell/TableCell.jsx +++ b/platform/ui/src/components/TableCell/TableCell.jsx @@ -2,17 +2,33 @@ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; -const TableCell = ({ children, className, isTableHead, size, style }) => { - const sizeClasses = { - small: 'flex-0.3', - normal: 'flex-1', +const TableCell = ({ + children, + className, + isTableHead, + size, + align, + style, +}) => { + const classes = { + align: { + left: 'text-left', + center: 'text-center', + right: 'text-right', + justify: 'text-justify', + }, + size: { + small: 'flex-0.3', + normal: 'flex-1', + }, }; return (