Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render() {
const ss = StyleSheet.create(defaultRankListItemMenuStyle);
const custom = StyleSheet.create(this.props.styles || {});
return (
<ul>
<li>
Delete {this.state.deleting ? : null}
</li>
</ul>
);
}
{
return (match && match.path === location.pathname);
}}
to={link[1]}
>
{link[0]}
))}
);
const styles = StyleSheet.create({
ul: {
listStyleType: 'none',
padding: 0,
},
li: {
margin: '0 0 1rem 0',
[breakpoints.echoAndUp]: {
display: 'inline-block',
margin: '0 1rem 0 0',
},
},
active: {
borderBottom: '1px solid black',
},
});
function Person({
className,
twitter,
link,
name,
imgSrc,
squareImage,
personClassNames = {root: '', name: '', twitter: '', image: ''},
customStyles = {name: {}, twitter: {}},
}) {
const mergedStyle = merge({}, Person.styles, {...customStyles})
const styles = StyleSheet.create(mergedStyle)
const personStyles = StyleSheet.create({
person: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
margin: 5,
textDecoration: 'none',
color: '#adadad',
},
})
const personClassName = css(personStyles.person)
className = className ? `${className} ${personClassName}` : personClassName
className += ` ${personClassNames.root}`
const nameClassName = `${personClassNames.name} ${css(styles.name)}`
const twitterClassName = `${personClassNames.twitter} ${css(styles.twitter)}`
target="_blank"
rel="noopener noreferrer"
>
Add to Calendar
)
}
MainDate.propTypes = {
date: PropTypes.object.isRequired,
calendarUrl: PropTypes.string.isRequired,
}
MainDate.styles = StyleSheet.create({
mainDateRSVPIcon: {
fill: 'black',
width: 40,
height: 40,
paddingBottom: 10,
},
calendarDateSlide: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
textAlign: 'center',
position: 'absolute',
boxSizing: 'border-box',
padding: '10px',
width: '120px',
path={this.props.path.concat(path)}
getValueByPath={this.props.getValueByPath}
inspect={this.props.inspect}
stopInspecting={this.props.stopInspecting}
showMenu={this.props.showMenu}
/>
))}
);
}
}
const styles = StyleSheet.create({
container: {
fontFamily: 'const(--font-family-monospace)',
width: '100%',
maxHeight: 270,
overflow: 'auto',
},
innerContainer: {
display: 'table',
},
title: {},
diffRow: {
display: 'table-row',
},
propName: {
display: 'table-cell',
minWidth: 70,
<p>Scan the QRCode with the Expo app to try out this snack on your phone.</p>
);
};
const styles = StyleSheet.create({
container: {
overflow: 'auto',
height: '100%',
width: '100%',
'@media (max-width: 590px)': {
backgroundColor: '#fff',
textAlign: 'center',
},
},
card: {
backgroundColor: '#fff',
borderRadius: 6,
opacity: 1,
width: 420,
margin: '4rem auto',
<select value="{sdkVersion}"> onChange(e.target.value as any)}
className={css(styles.select, prefs.theme === 'dark' ? styles.dark : styles.light)}>
{Object.keys(versions).map(v => (
<option value="{v}">
v{v}
</option>
))}
</select>
);
}
const styles = StyleSheet.create({
container: {
display: 'flex',
alignItems: 'center',
whiteSpace: 'nowrap',
marginRight: '.5em',
},
switcher: {
position: 'relative',
display: 'inline-block',
':after': {
content: '"▼"',
position: 'absolute',
fontSize: '0.6em',
right: '2em',
top: '1em',
import React, {PureComponent} from 'react';
import {connect} from 'react-redux';
import { Alert, Button, message } from 'antd';
import { StyleSheet, css } from 'aphrodite';
import {importData} from '../../actions';
const styles = StyleSheet.create({
p: {
marginBottom: '10px'
},
alert: {
margin: '20px 0px',
},
input: {
padding: '20px',
width: '100%',
textAlign: 'center',
fontSize: '36px'
},
center: {
textAlign: 'center'
}
})
]}
>
{children}
);
}
}
const styles = StyleSheet.create({
/**
* The hide style ensures that the bounds of the popover stay unchanged.
* This is because popper.js calculates the bubble position based off its
* bounds and if we stopped rendering it entirely, it wouldn't know where to
* place it when it reappeared.
*/
hide: {
pointerEvents: "none",
opacity: 0,
backgroundColor: "transparent",
color: "transparent",
},
/**
* Ensure the content and tail are properly arranged.
*/