From e360654b287de49d724ce9b09601b1d684b47346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Tue, 18 Sep 2018 06:38:19 -0700 Subject: [PATCH] TitleBar Summary: rename `SonarTitleBar` to `TitleBar` Reviewed By: passy Differential Revision: D9851709 fbshipit-source-id: f4b420a70d251a0ca7a5b22b66748a238c5f410a --- src/App.js | 4 ++-- src/chrome/{SonarTitleBar.js => TitleBar.js} | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename src/chrome/{SonarTitleBar.js => TitleBar.js} (94%) diff --git a/src/App.js b/src/App.js index 1676b6dae..50f0f2b1a 100644 --- a/src/App.js +++ b/src/App.js @@ -10,7 +10,7 @@ import {FlexColumn, FlexRow} from 'flipper'; import {connect} from 'react-redux'; import {toggleBugDialogVisible} from './reducers/application.js'; import WelcomeScreen from './chrome/WelcomeScreen.js'; -import SonarTitleBar from './chrome/SonarTitleBar.js'; +import TitleBar from './chrome/TitleBar.js'; import MainSidebar from './chrome/MainSidebar.js'; import BugReporterDialog from './chrome/BugReporterDialog.js'; import ErrorBar from './chrome/ErrorBar.js'; @@ -51,7 +51,7 @@ export class App extends React.Component { render() { return ( - + {this.props.bugDialogVisible && ( ({ +const AppTitleBar = styled(FlexRow)(({focused}) => ({ background: focused ? `linear-gradient(to bottom, ${colors.macOSTitleBarBackgroundTop} 0%, ${ colors.macOSTitleBarBackgroundBottom @@ -58,10 +58,10 @@ type Props = {| togglePluginManagerVisible: (visible?: boolean) => void, |}; -class SonarTitleBar extends Component { +class TitleBar extends Component { render() { return ( - + @@ -102,7 +102,7 @@ class SonarTitleBar extends Component { disabled={!this.props.rightSidebarAvailable} /> - + ); } } @@ -129,4 +129,4 @@ export default connect( toggleRightSidebarVisible, togglePluginManagerVisible, }, -)(SonarTitleBar); +)(TitleBar);