Add icon down
This commit is contained in:
parent
53cc774d52
commit
006efc5369
2 changed files with 19 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import react, {Children, ReactNode} from 'react'
|
||||
import TimelineCardSummary from './TimelineCardSummary'
|
||||
import { FaCaretDown } from 'react-icons/fa'
|
||||
|
||||
type TimelineCardProps = {
|
||||
children: react.ReactElement<any, react.JSXElementConstructor<any>>[]
|
||||
|
@ -17,7 +18,10 @@ function TimelineCard({ children } : TimelineCardProps) {
|
|||
});
|
||||
return (
|
||||
<details>
|
||||
<summary>{titles}</summary>
|
||||
<summary>
|
||||
{titles}
|
||||
<i><FaCaretDown/></i>
|
||||
</summary>
|
||||
<div>{childrens}</div>
|
||||
</details>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue