wip: More account pages
This commit is contained in:
parent
543be68c1f
commit
c994e3898f
58 changed files with 1419 additions and 29 deletions
|
@ -1,12 +1,11 @@
|
|||
import React from 'react'
|
||||
import { controlDesc } from '@freesewing/config'
|
||||
import { BulletIcon } from '@freesewing/react/components/Icon'
|
||||
|
||||
const scores = [1, 2, 3, 4, 5]
|
||||
|
||||
export const ControlScore = ({ control, color = 'base-content' }) =>
|
||||
control ? (
|
||||
<div className={`flex flex-row items-center text-${color}`}>
|
||||
{scores.map((score) => (
|
||||
{Object.keys(controlDesc).map((score) => (
|
||||
<BulletIcon fill={control >= score ? true : false} className="w-6 h-6 -ml-1" key={score} />
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue