diff --git a/src/chrome/MainSidebar.tsx b/src/chrome/MainSidebar.tsx index 55c080a57..2b874caa7 100644 --- a/src/chrome/MainSidebar.tsx +++ b/src/chrome/MainSidebar.tsx @@ -33,6 +33,8 @@ import { Heading, Spacer, ArchivedDevice, + SmallText, + Info, } from 'flipper'; import React, {Component, PureComponent, Fragment} from 'react'; import NotificationsHub from '../NotificationsHub'; @@ -445,6 +447,11 @@ class MainSidebar extends PureComponent { const {staticView, setStaticView} = this.props; return ( <> + + + {selectedDevice.source ? 'Imported device' : 'Archived device'} + + {this.state.showSupportForm && (selectedDevice as ArchivedDevice).supportRequestDetails && ( { <> {favoritePlugins.length === 0 ? ( -
- Star your favorite plugins! -
+ Star your favorite plugins!
) : ( <> diff --git a/src/chrome/__tests__/__snapshots__/ShareSheetPendingDialog.node.tsx.snap b/src/chrome/__tests__/__snapshots__/ShareSheetPendingDialog.node.tsx.snap index 353b54624..3e98a6d26 100644 --- a/src/chrome/__tests__/__snapshots__/ShareSheetPendingDialog.node.tsx.snap +++ b/src/chrome/__tests__/__snapshots__/ShareSheetPendingDialog.node.tsx.snap @@ -25,7 +25,7 @@ exports[`ShareSheetPendingDialog is rendered with status update 1`] = ` className="css-12zzrdt" />
({ - padding: 10, - borderRadius: 4, - color: color[type], - border: `1px solid ${color[type]}`, - background: bgColor[type], -})); +const InfoWrapper = styled(FlexColumn)( + ({type, small}: Pick) => ({ + padding: small ? '0 4px' : 10, + borderRadius: 4, + color: color[type], + border: `1px solid ${color[type]}`, + background: bgColor[type], + width: '100%', + }), +); InfoWrapper.displayName = 'InfoWrapper'; /** * Shows an info box with some text and a symbol. * Supported types: info | spinning | warning | error */ -function Info({type, children}: InfoProps) { +function Info({type, children, small}: InfoProps) { return ( - + {type === 'spinning' ? ( - + ) : ( )} diff --git a/src/ui/components/RoundedSection.tsx b/src/ui/components/RoundedSection.tsx index 1620fcdbc..03da901c2 100644 --- a/src/ui/components/RoundedSection.tsx +++ b/src/ui/components/RoundedSection.tsx @@ -11,6 +11,7 @@ import React from 'react'; import styled from 'react-emotion'; import {colors} from './colors'; import Heading from './Heading'; +import FlexColumn from './FlexColumn'; const Divider = styled('hr')({ margin: '16px -20px 20px -20px', @@ -38,7 +39,7 @@ const RoundedSection: React.FC<{title: string}> = ({title, children}) => ( {title} - {children} + {children} ); diff --git a/src/ui/components/SmallText.tsx b/src/ui/components/SmallText.tsx index 5a6e668ba..2d5793e9c 100644 --- a/src/ui/components/SmallText.tsx +++ b/src/ui/components/SmallText.tsx @@ -14,11 +14,13 @@ import Text from './Text'; /** * Subtle text that should not draw attention */ -const SmallText = styled(Text)({ +const SmallText = styled(Text)(({center}: {center?: boolean}) => ({ color: colors.light20, size: 10, fontStyle: 'italic', -}); + textAlign: center ? 'center' : undefined, + width: '100%', +})); SmallText.displayName = 'SmallText'; export default SmallText; diff --git a/src/utils/icons.js b/src/utils/icons.js index 6f03bedf8..e7c0d8d3d 100644 --- a/src/utils/icons.js +++ b/src/utils/icons.js @@ -18,27 +18,36 @@ const {remote} = require('electron'); const ICONS = { 'app-dailies': [12], + 'app-react': [12], 'arrow-right': [12], + bell: [12], 'bell-null-outline': [12, 24], 'bell-null': [12], + 'building-city': [12], + 'brush-paint': [12], 'caution-octagon': [16], - 'caution-triangle': [16, 24], + 'caution-triangle': [12, 16, 24], 'chevron-down-outline': [10], 'chevron-down': [8, 12], 'chevron-up': [8, 12], 'chevron-right': [8, 12, 16], - 'cross-circle': [16, 24], + compose: [12], + 'cross-circle': [12, 16, 24], 'dots-3-circle-outline': [16], 'flash-default': [12], - 'info-circle': [16, 24], - 'magic-wand': [20], + 'info-circle': [12, 16, 24], + 'magic-wand': [12, 20], 'magnifying-glass': [16, 20], 'minus-circle': [12], 'mobile-engagement': [16], + network: [12], + 'news-feed': [12], 'question-circle-outline': [16], 'star-outline': [12, 16, 24], + trending: [12], 'triangle-down': [12], 'triangle-right': [12], + 'thought-bubble': [12], accessibility: [16], apps: [12], bird: [12], @@ -50,10 +59,12 @@ const ICONS = { caution: [16], cross: [16], checkmark: [16], + dashboard: [12], desktop: [12], directions: [12], download: [16], internet: [12], + messages: [12], mobile: [12, 16, 32], posts: [20], power: [16], @@ -63,11 +74,14 @@ const ICONS = { settings: [12], share: [16], star: [12, 16, 24], + tree: [12], + translate: [12], 'star-slash': [16], 'life-event-major': [16], target: [12, 16], tools: [12, 20], 'washing-machine': [12], + 'watch-tv': [12], }; // Takes a string like 'star', or 'star-outline', and converts it to