Skip to content

Commit

Permalink
Refactor #2242
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 17, 2021
1 parent 0aea14e commit f9e2158
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
23 changes: 11 additions & 12 deletions src/components/styleclass/StyleClass.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import * as React from 'react';
import { StyleClass } from '../styleclass';

type StyleClassSelectorType = '@next' | '@prev' | '@parent' | '@grandparent' | string ;
type StyleClassSelectorType = '@next' | '@prev' | '@parent' | '@grandparent' | string;

export interface StyleClassProps {
nodeRef?: React.ReactNode,
selector?: StyleClassSelectorType,
enterClassName?: string,
enterActiveClassName?: string,
enterToClassName?: string,
leaveClassName?: string,
leaveActiveClassName?: string,
leaveToClassName?: string,
hideOnOutsideClick?: boolean,
toggleClassName?: string
nodeRef?: React.ReactNode;
selector?: StyleClassSelectorType;
enterClassName?: string;
enterActiveClassName?: string;
enterToClassName?: string;
leaveClassName?: string;
leaveActiveClassName?: string;
leaveToClassName?: string;
hideOnOutsideClick?: boolean;
toggleClassName?: string;
}

export declare class StyleClass extends React.Component<StyleClassProps, any> { }
1 change: 0 additions & 1 deletion src/components/styleclass/StyleClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component } from 'react';
import PropTypes from 'prop-types';
import { DomHandler } from '../utils/Utils';


export class StyleClass extends Component {

static defaultProps = {
Expand Down

0 comments on commit f9e2158

Please sign in to comment.