We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b6d47e commit 7b81840Copy full SHA for 7b81840
app/javascript/components/user.tsx
@@ -0,0 +1,31 @@
1
+import { UserDetail } from '../generated_types/users'
2
+
3
+type Props = {
4
+ user: UserDetail
5
+}
6
7
+const User = ({ user }: Props) => {
8
+ return (
9
+ <>
10
+ <h2>{user.name}</h2>
11
+ <table>
12
+ <tbody>
13
+ <tr>
14
+ <th>Id</th>
15
+ <td>{user.id}</td>
16
+ </tr>
17
18
+ <th>email</th>
19
+ <td>{user.email}</td>
20
21
22
+ <th>Date of birth</th>
23
+ <td>{user.date_of_birth}</td>
24
25
+ </tbody>
26
+ </table>
27
+ </>
28
+ )
29
30
31
+export default User
0 commit comments