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:
committed by
Facebook Github Bot
parent
2bd87a8100
commit
ac8879c503
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user