Skip to content

Commit

Permalink
feat: migrate Row component to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Nov 6, 2024
1 parent 9fdee6e commit d2bd969
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ui/Row.jsx

This file was deleted.

11 changes: 11 additions & 0 deletions src/ui/Row.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Stack from '@mui/material/Stack';
import { ComponentProps } from 'react';

/**
* A horizontal stack
*/

type RowTypes = Omit<ComponentProps<typeof Stack>, 'direction' | 'alignItems'>
export function Row(props: Readonly<RowTypes>) {
return <Stack direction="row" alignItems="center" {...props} />;
}

0 comments on commit d2bd969

Please sign in to comment.