Skip to content

Commit

Permalink
Use styled-components for withLayout()
Browse files Browse the repository at this point in the history
  • Loading branch information
swaterkamp committed Sep 18, 2018
1 parent 6a52b16 commit 00a3d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gsa/src/web/components/layout/withLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/

import styled from 'styled-components';
import glamorous from 'glamorous';

import {isDefined} from 'gmp/utils/identity';
import {map} from 'gmp/utils/array';

Expand All @@ -40,7 +40,7 @@ const set_default_flex = defaults => isDefined(defaults.flex) ?
defaults.flex : 'row';

const withLayout = (defaults = {}) => Component => {
return glamorous(Component, {
return styled(Component, {
displayName: 'withLayout(' + Component.displayName + ')',
filterProps: ['align', 'basis', 'flex', 'grow', 'shrink', 'wrap'],
withProps: ({
Expand Down

0 comments on commit 00a3d67

Please sign in to comment.