fix a small mistake in OutfitPreview doAnimations

This commit is contained in:
Matt Dunn-Rankin 2020-05-02 23:16:26 -07:00
parent a142df86cf
commit fc6258f6e9

View file

@ -41,13 +41,12 @@ function OutfitPreview({ outfitState }) {
export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) { export function OutfitLayers({ loading, visibleLayers, doAnimations = false }) {
return ( return (
<Box pos="relative" height="100%" width="100%"> <Box pos="relative" height="100%" width="100%">
<TransitionGroup> <TransitionGroup enter={false} exit={doAnimations}>
{visibleLayers.map((layer) => ( {visibleLayers.map((layer) => (
// We manage the fade-in and fade-out separately! The fade-out // We manage the fade-in and fade-out separately! The fade-out
// happens here, when the layer exits the DOM. // happens here, when the layer exits the DOM.
<CSSTransition <CSSTransition
key={layer.id} key={layer.id}
exit={doAnimations}
classNames={css` classNames={css`
&-exit { &-exit {
opacity: 1; opacity: 1;