diff --git a/src/components/DeviceInfo/index.jsx b/src/components/DeviceInfo/index.jsx
index 9dda12c5..99496e66 100644
--- a/src/components/DeviceInfo/index.jsx
+++ b/src/components/DeviceInfo/index.jsx
@@ -17,12 +17,12 @@ import ResizeHandler from '../ResizeHandler';
import VisibilityHandler from '../VisibilityHandler';
import TimeSelect from '../TimeSelect'
import CommacareBadge from '../CommacareBadge';
+import BodyIcon from '../../icons/body.png';
import BodyTeleop from '../BodyTeleop';
const styles = (theme) => ({
container: {
borderBottom: `1px solid ${Colors.white10}`,
- paddingTop: 8,
display: 'flex',
flexDirection: 'column',
minHeight: 64,
@@ -32,10 +32,6 @@ const styles = (theme) => ({
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
- marginBottom: 4,
- [theme.breakpoints.down('xs')]: {
- marginBottom: 8,
- },
},
columnGap: {
columnGap: theme.spacing.unit * 4,
@@ -46,6 +42,20 @@ const styles = (theme) => ({
deviceTitle: {
display: 'flex',
alignItems: 'center',
+ gap: '16px',
+ },
+ bodyIconWrapper: {
+ width: 35,
+ height: 28,
+ borderRadius: '5px',
+ backgroundColor: Colors.grey500,
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ bodyIcon: {
+ width: 20,
+ objectFit: 'contain',
},
button: {
backgroundColor: Colors.white,
@@ -99,7 +109,7 @@ const styles = (theme) => ({
carBattery: {
padding: '5px 16px',
borderRadius: 15,
- margin: '0 10px',
+ margin: '0 0px',
textAlign: 'center',
'& p': {
fontSize: 14,
@@ -372,8 +382,9 @@ class DeviceInfo extends Component {
render() {
const { classes, device } = this.props;
- const { snapshot, deviceStats, windowWidth, bodyTeleopOpen } = this.state;
+ const { snapshot, windowWidth, bodyTeleopOpen } = this.state;
const commacare = device?.commacare;
+ const isCommaBody = device?.rpc?.not_car;
const containerPadding = windowWidth > 520 ? 36 : 16;
const largeSnapshotPadding = windowWidth > 1440 ? '12px 0' : 0;
@@ -382,37 +393,22 @@ class DeviceInfo extends Component {
<>