Skip to content

Commit

Permalink
animated dialog animate.css reference fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AJIXuMuK committed Mar 15, 2021
1 parent 3a099be commit 45bae64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/controls/animatedDialog/AnimatedDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button'
import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';

// Animate.min.css
require('../../../node_modules/animate.css/animate.min.css');
//require('../../../node_modules/animate.css/animate.min.css');
require('animate.css/animate.min.css');

export interface IAnimatedDialogProps extends IDialogProps {
dialogAnimationInType?: string;
Expand Down Expand Up @@ -96,7 +97,7 @@ export function AnimatedDialog(props: React.PropsWithChildren<IAnimatedDialogPro
useEffect(() => {

let containerClassName: string = `${containerAnimationClass} ${defaultDialogAnimationClass}`;

if (props.dialogAnimationInType) {
containerClassName = `${containerAnimationClass} ${animationPrefix}${dialogAnimationInType}`;
}
Expand All @@ -123,4 +124,4 @@ export function AnimatedDialog(props: React.PropsWithChildren<IAnimatedDialogPro
{animatedDialogFooter}
</Dialog>
);
}
}

0 comments on commit 45bae64

Please sign in to comment.