mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added logic
This commit is contained in:
parent
0dcb11053c
commit
c5f5583f0d
@ -1,10 +1,29 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
|
import { Icons } from "components/Icons"
|
||||||
|
|
||||||
import "./index.less"
|
import "./index.less"
|
||||||
|
|
||||||
// TODO: Implement this component
|
const TrendingItem = (props) => {
|
||||||
export default (props) => {
|
return <div
|
||||||
return <div className="hashtagTrendings">
|
key={props.index}
|
||||||
|
className="trendingItem"
|
||||||
|
>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Implement this component
|
||||||
|
export default (props) => {
|
||||||
|
const [trendings, setTrendings] = React.useState([])
|
||||||
|
|
||||||
|
return <div className="hashtagTrendings">
|
||||||
|
{
|
||||||
|
trendings.map((trending, index) => {
|
||||||
|
return <TrendingItem
|
||||||
|
index={index}
|
||||||
|
data={trending}
|
||||||
|
/>
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</div>
|
||||||
}
|
}
|
@ -1,3 +1,19 @@
|
|||||||
.hashtagTrendings {
|
.hashtagTrendings {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
color: var(--text-color);
|
||||||
|
|
||||||
|
.empty {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user