1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00
unleash.unleash/frontend/src/component/common/GridRow/GridRow.tsx
Nuno Góis 570e9f88be feat: upgrade users table (#1040)
* feat: upgrade users table

* fix misc ui/ux bugs

* refactor: address PR comments

* fix: searching by `undefined`

* fix: searching for undefined on invoices, table placeholder centering

* refactor: abstract users list actions into new component

* refactor: move styled components to top of files
2022-05-31 07:59:09 +01:00

22 lines
506 B
TypeScript

import { Grid, styled, SxProps, Theme } from '@mui/material';
import { FC } from 'react';
const StyledGrid = styled(Grid)(({ theme }) => ({
flexWrap: 'nowrap',
gap: theme.spacing(1),
}));
export const GridRow: FC<{ sx?: SxProps<Theme> }> = ({ sx, children }) => {
return (
<StyledGrid
container
item
justifyContent="space-between"
alignItems="center"
sx={sx}
>
{children}
</StyledGrid>
);
};