parent
0bbcdf6201
commit
0993531ebf
12 changed files with 41 additions and 10 deletions
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 742 B |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
@ -1,4 +1,4 @@ |
|||||||
import CircleInCircle from "../CircleInCircle"; |
import CircleInCircle from "../../"; |
||||||
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
||||||
|
|
||||||
const TimeLineItem = ({ data }) => ( |
const TimeLineItem = ({ data }) => ( |
@ -0,0 +1,25 @@ |
|||||||
|
import React, { useState } from "react"; |
||||||
|
|
||||||
|
import TimeLine1 from "./TimeLine1"; |
||||||
|
|
||||||
|
function Advertisements() { |
||||||
|
const list = { |
||||||
|
1: <TimeLine1 />, |
||||||
|
}; |
||||||
|
const [type, setType] = useState(1); |
||||||
|
return ( |
||||||
|
<div className="w-full flex flex-col items-center"> |
||||||
|
<select |
||||||
|
className="mb-10 w-20 bg-gray-200" |
||||||
|
onChange={(e) => setType(e.target.value)} |
||||||
|
> |
||||||
|
{Object.keys(list).map((option, index) => ( |
||||||
|
<option key={index}>{option}</option> |
||||||
|
))} |
||||||
|
</select> |
||||||
|
{list[type]} |
||||||
|
</div> |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
export default Advertisements; |
Loading…
Reference in new issue