added logic

This commit is contained in:
SrGooglo 2023-03-03 22:01:23 +00:00
parent 0dcb11053c
commit c5f5583f0d
2 changed files with 38 additions and 3 deletions

View File

@ -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>
}

View File

@ -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;
}
}