feat: refactor animation code
This commit is contained in:
@@ -29,6 +29,7 @@ export interface ContainerProps {
|
||||
whiteSpace?: string;
|
||||
opacity?: number;
|
||||
cursor?: string;
|
||||
overflow?: string;
|
||||
}
|
||||
|
||||
export const Container =
|
||||
@@ -59,6 +60,7 @@ export const Container =
|
||||
${props => cssRuleIfExists(props, 'white-space')}
|
||||
${props => cssRuleIfExists(props, 'opacity')}
|
||||
${props => cssRuleIfExists(props, 'cursor')}
|
||||
${props => cssRuleIfExists(props, 'overflow')}
|
||||
${props => (props.hasBoxShadow ? `box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)` : '')};
|
||||
background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')};
|
||||
border-color: ${props => (props.borderColor ? props.theme[props.borderColor] : 'none')};
|
||||
|
Reference in New Issue
Block a user