Skip to content

Commit

Permalink
fix(demo/drag-ii): simplify return conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Mar 18, 2020
1 parent 83ca696 commit 672aac0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vx-demo/src/docs-v2/examples/vx-drag-ii/Example.tsx
Expand Up @@ -16,8 +16,7 @@ type Props = {
export default function DragII({ data = [], width, height }: Props) {
const [lines, setLines] = useState<Lines>(data);

if (width < 10) return null;
return (
return width < 10 ? null : (
<div className="DragII" style={{ touchAction: 'none' }}>
<svg width={width} height={height}>
<LinearGradient id="stroke" from="#ff614e" to="#ffdc64" />
Expand Down

0 comments on commit 672aac0

Please sign in to comment.