Skip to content

Commit

Permalink
support for multiple classes (#124)
Browse files Browse the repository at this point in the history
it is required when using react-jss with dynamic stylesheet - jss produces multiple class names then
  • Loading branch information
adamborowski authored and jquense committed Jul 20, 2017
1 parent 20b16c6 commit 3c36923
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CSSTransition.js
@@ -1,11 +1,14 @@
import * as PropTypes from 'prop-types';
import addClass from 'dom-helpers/class/addClass';
import addOneClass from 'dom-helpers/class/addClass';

import removeClass from 'dom-helpers/class/removeClass';
import React from 'react';

import Transition from './Transition';
import { classNamesShape } from './utils/PropTypes';

const addClass = (node, classes) => classes.forEach(c => addOneClass(node, c));

const propTypes = {
...Transition.propTypes,

Expand Down

0 comments on commit 3c36923

Please sign in to comment.