Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Material UI table should have <FormattedMessage too #131

Open
2 tasks
jozef-slezak opened this issue Jun 28, 2021 · 1 comment
Open
2 tasks

Basic Material UI table should have <FormattedMessage too #131

jozef-slezak opened this issue Jun 28, 2021 · 1 comment

Comments

@jozef-slezak
Copy link
Contributor

  • Instead of <TableCell>avatarUrl</TableCell> it should by <FormattedMessage "customer.avatarUrl"....`
  • templates for <FormattedMessage / intl. hooks
import { Table, TableHead, TableRow, TableCell, TableBody } from "@material-ui/core";
export default function CustomerTable({ customers }) {
    return <Table><TableHead>
        <TableRow><TableCell>avatarUrl</TableCell><TableCell>createdAt</TableCell>
        <TableCell>email</TableCell><TableCell>id</TableCell><TableCell>name</TableCell><TableCell>phone</TableCell><TableCell>updatedAt</TableCell></TableRow></TableHead>
        <TableBody>{customers.map(customer => <TableRow><TableCell>{customer.avatarUrl}</TableCell><TableCell>{customer.createdAt}</TableCell><TableCell>{customer.email}</TableCell><TableCell>{customer.id}</TableCell><TableCell>{customer.name}</TableCell><TableCell>{customer.phone}</TableCell><TableCell>{customer.updatedAt}</TableCell></TableRow>)}</TableBody>
        </Table>;
}
@jozef-slezak
Copy link
Contributor Author

@mat-app, maybe we just need to configure react intl formatter

getHeaderTitleJsxText(entity: Entity, property: Property): ts.JsxText | ts.JsxSelfClosingElement{
from the facade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant