Tweak
This commit is contained in:
parent
82a5196faa
commit
657d67c503
|
@ -108,9 +108,9 @@ const SectionItem = (props: {
|
|||
|
||||
export const getHomeItems = (groups: Group[], sections: string[]) => {
|
||||
const items = [
|
||||
{ label: 'Daily movers', id: 'daily-movers' },
|
||||
{ label: 'Trending', id: 'score' },
|
||||
{ label: 'New for you', id: 'newest' },
|
||||
{ label: 'Daily movers', id: 'daily-movers' },
|
||||
...groups.map((g) => ({
|
||||
label: g.name,
|
||||
id: g.id,
|
||||
|
|
|
@ -754,7 +754,10 @@ function SellButton(props: {
|
|||
)
|
||||
}
|
||||
|
||||
function ProfitBadge(props: { profitPercent: number; className?: string }) {
|
||||
export function ProfitBadge(props: {
|
||||
profitPercent: number
|
||||
className?: string
|
||||
}) {
|
||||
const { profitPercent, className } = props
|
||||
if (!profitPercent) return null
|
||||
const colors =
|
||||
|
|
Loading…
Reference in New Issue
Block a user