This commit is contained in:
James Grugett 2022-09-13 11:58:04 -05:00
parent 82a5196faa
commit 657d67c503
2 changed files with 5 additions and 2 deletions

View File

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

View File

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