Add clear diff button, style recording button

Summary:
* Added a button to clear Diff selection
* Added icons and color to the recording button
* Made App input field readonly

Reviewed By: priteshrnandgaonkar

Differential Revision: D18748538

fbshipit-source-id: 00ffb5d5c36f8f5394a353602f182aabd8237ee7
This commit is contained in:
Michel Weststrate
2019-11-29 08:25:46 -08:00
committed by Facebook Github Bot
parent 2bd87a8100
commit ac8879c503
6 changed files with 34 additions and 19 deletions

View File

@@ -9,7 +9,7 @@
import React, {Component} from 'react';
import BaseDevice from '../devices/BaseDevice';
import {Button} from 'flipper';
import {Button, Glyph, colors} from 'flipper';
import path from 'path';
import os from 'os';
@@ -82,7 +82,13 @@ export default class VideoRecordingButton extends Component<Props, State> {
selected={this.state.recording}
title="Make Screen Recording"
disabled={!selectedDevice || !recordingEnabled}
type="primary">
type={this.state.recording ? 'danger' : 'primary'}>
<Glyph
name={this.state.recording ? 'stop-playback' : 'camcorder'}
color={this.state.recording ? colors.red : colors.white}
variant="filled"
style={{marginRight: 8}}
/>
{this.state.recording ? 'Recording...' : 'Start Recording'}
</Button>
);