-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.tsx
More file actions
34 lines (31 loc) · 842 Bytes
/
index.tsx
File metadata and controls
34 lines (31 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { memo } from 'react'
import { CardBorder } from '../CardBorder'
import { ButtonLink } from '../ButtonLink'
import { Txt } from '../Txt'
import { Space } from '../Space'
interface CardEducationT {
obj?: {
institution: string
start: string
finish: string
description: string
link: string
}
}
const CardEducation = memo<CardEducationT>(({ obj }) => {
const { institution, start, finish, description, link } = obj
return (
<>
<CardBorder>
<Txt h7 title={institution} textStyle={{ textAlign: 'left' }} />
<Space height={10} />
<Txt h8 title={`[${start} - ${finish}]`} />
<Space height={5} />
<Txt body title={description} />
<Space height={10} />
<ButtonLink title={link} />
</CardBorder>
</>
)
})
export { CardEducation }