mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added logic
This commit is contained in:
parent
0dcb11053c
commit
c5f5583f0d
@ -1,10 +1,29 @@
|
||||
import React from "react"
|
||||
import { Icons } from "components/Icons"
|
||||
|
||||
import "./index.less"
|
||||
|
||||
// TODO: Implement this component
|
||||
export default (props) => {
|
||||
return <div className="hashtagTrendings">
|
||||
const TrendingItem = (props) => {
|
||||
return <div
|
||||
key={props.index}
|
||||
className="trendingItem"
|
||||
>
|
||||
|
||||
</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 {
|
||||
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