chore: Fixing linter warnings
This commit is contained in:
parent
e0ce1a8bcf
commit
c49a47a0de
33 changed files with 76 additions and 547 deletions
|
@ -19,7 +19,7 @@ export const ns = setNs
|
|||
|
||||
export const CuratedSetPicker = ({ design, language }) => {
|
||||
// Hooks
|
||||
const { account, token } = useAccount()
|
||||
const { token } = useAccount()
|
||||
const backend = useBackend(token)
|
||||
const { t } = useTranslation('sets')
|
||||
|
||||
|
@ -29,9 +29,6 @@ export const CuratedSetPicker = ({ design, language }) => {
|
|||
const [tags, setTags] = useState([])
|
||||
const [reload, setReload] = useState(0)
|
||||
|
||||
// Force a refresh
|
||||
const refresh = () => setReload(reload + 1)
|
||||
|
||||
// Effects
|
||||
useEffect(() => {
|
||||
const getCuratedSets = async () => {
|
||||
|
@ -101,14 +98,14 @@ export const CuratedSetPicker = ({ design, language }) => {
|
|||
</button>
|
||||
</div>
|
||||
{filter.map((tag) => (
|
||||
<Tag onClick={() => removeFilter(tag)} color="success" hoverColor="error">
|
||||
<Tag onClick={() => removeFilter(tag)} color="success" hoverColor="error" key={tag}>
|
||||
{tag}
|
||||
</Tag>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-row flex-wrap gap-2">
|
||||
{orderBy(list, ['name'], ['asc']).map((set) => (
|
||||
<div className="w-full lg:w-96">
|
||||
<div className="w-full lg:w-96" key={set.id}>
|
||||
<CuratedSetCandidate
|
||||
href={`/new/pattern/${design}/cset/${set.id}`}
|
||||
set={set}
|
||||
|
@ -124,7 +121,7 @@ export const CuratedSetPicker = ({ design, language }) => {
|
|||
|
||||
export const UserSetPicker = ({ design, t, language }) => {
|
||||
// Hooks
|
||||
const { account, token } = useAccount()
|
||||
const { token } = useAccount()
|
||||
const backend = useBackend(token)
|
||||
|
||||
// State
|
||||
|
@ -160,7 +157,7 @@ export const UserSetPicker = ({ design, t, language }) => {
|
|||
<>
|
||||
<div className="flex flex-row flex-wrap gap-2">
|
||||
{orderBy(sets, ['name'], ['asc']).map((set) => (
|
||||
<div className="w-full lg:w-96">
|
||||
<div className="w-full lg:w-96" key={set.id}>
|
||||
<SetCandidate set={set} requiredMeasies={measurements[design]} design={design} />
|
||||
</div>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue