Convert UI to Sandy
Summary: With proper notification, components and code clean up in place, time for the reward and giving the plugin a fresh look. Changelog: CrashReporter plugin got a fresh look and several navigation issues were addressed. Reviewed By: passy Differential Revision: D28102398 fbshipit-source-id: 5721634e45c5b1fc5fba3fb0c0b8970635b80b46
This commit is contained in:
committed by
Facebook GitHub Bot
parent
01ea822341
commit
e707fcc9f9
@@ -25,12 +25,17 @@ export function Toolbar({
|
||||
children,
|
||||
style,
|
||||
wash,
|
||||
right,
|
||||
}: {
|
||||
children?: React.ReactNode;
|
||||
position?: 'bottom' | 'top';
|
||||
compact?: boolean;
|
||||
wash?: boolean;
|
||||
style?: React.CSSProperties;
|
||||
/**
|
||||
* Additional children that are always right-aligned
|
||||
*/
|
||||
right?: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<SandyToolbarContainer
|
||||
@@ -39,6 +44,12 @@ export function Toolbar({
|
||||
center
|
||||
wash={wash}>
|
||||
{children}
|
||||
{right ? (
|
||||
<>
|
||||
<div style={{flexGrow: 1}}></div>
|
||||
{right}
|
||||
</>
|
||||
) : null}
|
||||
</SandyToolbarContainer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user