Skip to content

Commit bf770fe

Browse files
author
Seth Lemmons
committed
Removed 'px' from inline styles
1 parent 8ecf313 commit bf770fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

21-floating-components/a-ad-hoc-menus/src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React, { Component } from 'react';
22
import Menu from './Menu';
33

44
const style = {
5-
height: '300px',
6-
width: '300px',
5+
height: 300,
6+
width: 300,
77
background: '#e02d42',
8-
padding: '12px',
8+
padding: 12,
99
color: 'white',
1010
textAlign: 'center'
1111
}

21-floating-components/b-tooltips/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Tooltip from './Tooltip';
44
class App extends Component {
55
render() {
66
return (
7-
<div style={{fontSize: '20px', color: '#555', margin: '60px'}}>
7+
<div style={{fontSize: 20, color: '#555', margin: 60}}>
88
<span>THAT'S NO </span>
99
<Tooltip tiptext="DEATH STAR">
1010
<span style={{color: '#a0a0a0'}}>MOON</span>

21-floating-components/c-modal/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class App extends Component {
1616
const { floating } = this.state;
1717

1818
return (
19-
<div style={{width: '400px', height: '400px', position: 'relative'}}>
19+
<div style={{width: 400, height: 400, position: 'relative'}}>
2020
<button onClick={this.showFloating}>Show Floating</button>
2121
<Floating modal show={floating} viewport closeOnModalClick>
2222
<div className="modal-msg">

0 commit comments

Comments
 (0)