mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
* 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
22 lines
506 B
TypeScript
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>
|
|
);
|
|
};
|