aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forms/src/wrapper/index.tsx
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-06-13 15:48:23 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-06-13 15:48:23 +0200
commite5fbcfc9eb02a1cbb1c5876a3c1a01f79ad15180 (patch)
tree676d3c5478a7279d3cf510ad3f620ed2d3a76491 /packages/forms/src/wrapper/index.tsx
parentAdd custom recipe limitation (diff)
parentMerge branch 'release/5.2.0-beta.2' (diff)
downloadferdium-app-e5fbcfc9eb02a1cbb1c5876a3c1a01f79ad15180.tar.gz
ferdium-app-e5fbcfc9eb02a1cbb1c5876a3c1a01f79ad15180.tar.zst
ferdium-app-e5fbcfc9eb02a1cbb1c5876a3c1a01f79ad15180.zip
Merge branch 'develop' into feature/3rd-party-limit
Diffstat (limited to 'packages/forms/src/wrapper/index.tsx')
-rw-r--r--packages/forms/src/wrapper/index.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/forms/src/wrapper/index.tsx b/packages/forms/src/wrapper/index.tsx
index d9c61381d..cf179bc5e 100644
--- a/packages/forms/src/wrapper/index.tsx
+++ b/packages/forms/src/wrapper/index.tsx
@@ -3,14 +3,19 @@ import React, { Component } from 'react';
3import injectStyle from 'react-jss'; 3import injectStyle from 'react-jss';
4import { IWithStyle } from '../typings/generic'; 4import { IWithStyle } from '../typings/generic';
5 5
6import styles from './styles';
7
8interface IProps extends IWithStyle { 6interface IProps extends IWithStyle {
9 children: React.ReactNode; 7 children: React.ReactNode;
10 className?: string; 8 className?: string;
11 identifier: string; 9 identifier: string;
10 noMargin?: boolean;
12} 11}
13 12
13const styles = {
14 container: {
15 marginBottom: (props: IProps) => props.noMargin ? 0 : 20,
16 },
17};
18
14class WrapperComponent extends Component<IProps> { 19class WrapperComponent extends Component<IProps> {
15 render() { 20 render() {
16 const { 21 const {