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:
Michel Weststrate
2021-05-04 13:49:11 -07:00
committed by Facebook GitHub Bot
parent 01ea822341
commit e707fcc9f9
10 changed files with 246 additions and 514 deletions

View File

@@ -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>
);
}

View File

@@ -321,7 +321,7 @@ export const DataSourceRenderer: <T extends object, C>(
}) as any;
const TableContainer = styled.div({
overflowY: 'scroll',
overflowY: 'auto',
overflowX: 'hidden',
display: 'flex',
flex: 1,

View File

@@ -120,7 +120,7 @@ export const TableRow = memo(function TableRow<T>({
.filter((col) => col.visible)
.map((col) => {
const value = col.onRender
? (col as any).onRender(record, highlighted, itemIndex) // TODO: ever used?
? (col as any).onRender(record, highlighted, itemIndex)
: DataFormatter.format((record as any)[col.key], col.formatters);
return (