-
+
{
isRepost &&
diff --git a/app/javascript/gabsocial/components/switch.js b/app/javascript/gabsocial/components/switch.js
index 970c8783..bc6a7106 100644
--- a/app/javascript/gabsocial/components/switch.js
+++ b/app/javascript/gabsocial/components/switch.js
@@ -36,18 +36,18 @@ export default class Switch extends PureComponent {
border1PX: 1,
mlAuto: 1,
borderColorSecondary: 1,
- backgroundColorBrand: checked,
+ bgBrand: checked,
})
const checkboxLabelClasses = cx({
default: 1,
- margin1PX: 1,
+ m1PX: 1,
height20PX: 1,
width20PX: 1,
circle: 1,
posAbs: 1,
- backgroundColorSubtle2: !checked,
- backgroundColorPrimary: checked,
+ bgSecondary: !checked,
+ bgPrimary: checked,
left0: !checked,
right0: checked,
})
diff --git a/app/javascript/gabsocial/components/tab_bar.js b/app/javascript/gabsocial/components/tab_bar.js
index 10614654..e1017832 100644
--- a/app/javascript/gabsocial/components/tab_bar.js
+++ b/app/javascript/gabsocial/components/tab_bar.js
@@ -26,7 +26,6 @@ export default class TabBar extends PureComponent {
key={`tab-bar-item-${i}`}
title={tab.title}
onClick={tab.onClick}
- icon={tab.icon}
to={tab.to}
isActive={tab.active}
isLarge={isLarge}
diff --git a/app/javascript/gabsocial/components/tab_bar_item.js b/app/javascript/gabsocial/components/tab_bar_item.js
index 84aa3a49..dddbd008 100644
--- a/app/javascript/gabsocial/components/tab_bar_item.js
+++ b/app/javascript/gabsocial/components/tab_bar_item.js
@@ -1,7 +1,6 @@
import { withRouter } from 'react-router-dom'
import classNames from 'classnames/bind'
import Button from './button'
-import Icon from './icon'
import Text from './text'
// Bind CSS Modules global variable `_s` to classNames module
@@ -9,7 +8,6 @@ const cx = classNames.bind(_s)
/**
* Renders a tab bar item component
- * @param {string} [props.icon] - icon to use
* @param {bool} [props.isLarge] - to style the tab bar larger
* @param {bool} [props.isActive] - if item is active
* @param {func} [props.onClick] - function to call on click
@@ -21,7 +19,6 @@ export default
class TabBarItem extends PureComponent {
static propTypes = {
- icon: PropTypes.string,
isLarge: PropTypes.bool,
isActive: PropTypes.bool,
onClick: PropTypes.func,
@@ -52,7 +49,6 @@ class TabBarItem extends PureComponent {
onClick,
location,
isLarge,
- icon,
isActive,
} = this.props
const { isCurrent } = this.state
@@ -74,7 +70,7 @@ class TabBarItem extends PureComponent {
py5: 1,
outlineNone: 1,
cursorPointer: 1,
- backgroundTransparent: 1,
+ bgTransparent: 1,
borderColorTransparent: !active,
borderColorBrand: active,
mr5: isLarge,
@@ -89,7 +85,7 @@ class TabBarItem extends PureComponent {
radiusSmall: 1,
px10: !isLarge,
px15: isLarge,
- backgroundColorSubtle2Dark_onHover: !active,
+ bgSecondaryDark_onHover: !active,
})
const textOptions = {
@@ -98,12 +94,6 @@ class TabBarItem extends PureComponent {
weight: active ? 'bold' : isLarge ? 'medium' : 'normal',
}
- const iconOptions = {
- id: icon,
- width: !!isLarge ? 20 : 14,
- height: !!isLarge ? 20 : 14,
- }
-
return (
)
diff --git a/app/javascript/gabsocial/components/text.js b/app/javascript/gabsocial/components/text.js
index ec08356b..2d18f860 100644
--- a/app/javascript/gabsocial/components/text.js
+++ b/app/javascript/gabsocial/components/text.js
@@ -103,11 +103,11 @@ export default class Text extends PureComponent {
colorWhite: color === COLORS.white,
inherit: color === COLORS.inherit,
- fontSize19PX: size === SIZES.large,
- fontSize15PX: size === SIZES.medium,
- fontSize14PX: size === SIZES.normal,
- fontSize13PX: size === SIZES.small,
- fontSize12PX: size === SIZES.extraSmall,
+ fs19PX: size === SIZES.large,
+ fs15PX: size === SIZES.medium,
+ fs14PX: size === SIZES.normal,
+ fs13PX: size === SIZES.small,
+ fs12PX: size === SIZES.extraSmall,
fontWeightNormal: weight === WEIGHTS.normal,
fontWeightMedium: weight === WEIGHTS.medium,
diff --git a/app/javascript/gabsocial/components/textarea.js b/app/javascript/gabsocial/components/textarea.js
index 71df798d..6c4fb853 100644
--- a/app/javascript/gabsocial/components/textarea.js
+++ b/app/javascript/gabsocial/components/textarea.js
@@ -8,7 +8,6 @@ export default class Textarea extends PureComponent {
placeholder: PropTypes.string,
prependIcon: PropTypes.string,
value: PropTypes.string,
- hasClear: PropTypes.bool,
onChange: PropTypes.func,
onKeyUp: PropTypes.func,
onFocus: PropTypes.func,
@@ -25,7 +24,6 @@ export default class Textarea extends PureComponent {
placeholder,
prependIcon,
value,
- hasClear,
onKeyUp,
onFocus,
onBlur,
@@ -39,14 +37,13 @@ export default class Textarea extends PureComponent {
lineHeight125: 1,
displayBlock: 1,
py10: 1,
- backgroundTransparent: 1,
- fontSize15PX: 1,
+ bgTransparent: 1,
+ fs15PX: 1,
flexGrow1: 1,
heightMax100VH: 1,
resizeVertical: 1,
px5: !!prependIcon,
pl15: !prependIcon,
- pr15: !hasClear,
})
return (
@@ -59,7 +56,7 @@ export default class Textarea extends PureComponent {
}
-