-
{filter}
+
+
+
+
+ {filter.get('phrase')}
+
+
+
+
+ {filter.get('context').map((context, i) => (
+ {context}
+ ))}
+
+
+
+
+
+ {filter.get('irreversible') ?
+ :
+
+ }
+ {filter.get('whole_word') &&
+
+ }
+
+
+
+
+
+
+
))}
diff --git a/app/soapbox/features/forms/index.js b/app/soapbox/features/forms/index.js
index 471a173f8..e4f7a955a 100644
--- a/app/soapbox/features/forms/index.js
+++ b/app/soapbox/features/forms/index.js
@@ -36,7 +36,7 @@ InputContainer.propTypes = {
extraClass: PropTypes.string,
};
-export const LabelInputContainer = ({ label, children, ...props }) => {
+export const LabelInputContainer = ({ label, hint, children, ...props }) => {
const [id] = useState(uuidv4());
const childrenWithProps = React.Children.map(children, child => (
React.cloneElement(child, { id: id, key: id })
@@ -48,12 +48,14 @@ export const LabelInputContainer = ({ label, children, ...props }) => {
{childrenWithProps}
+ {hint &&
{hint}}
);
};
LabelInputContainer.propTypes = {
label: FormPropTypes.label.isRequired,
+ hint: PropTypes.node,
children: PropTypes.node,
};
@@ -223,11 +225,12 @@ export class SelectDropdown extends ImmutablePureComponent {
static propTypes = {
label: FormPropTypes.label,
+ hint: PropTypes.node,
items: PropTypes.object.isRequired,
}
render() {
- const { label, items, ...props } = this.props;
+ const { label, hint, items, ...props } = this.props;
const optionElems = Object.keys(items).map(item => (