mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Add eslint.
This commit is contained in:
@@ -102,10 +102,10 @@ export default function ColourSwatches({ value, onChange }: Props) {
|
||||
onChange={ev => onChange(ev.currentTarget.value)}
|
||||
/>
|
||||
<Rows>
|
||||
{presets.map(row => (
|
||||
<div>
|
||||
{ row.map(swatch => (
|
||||
<Swatch colour={swatch} type='small'
|
||||
{presets.map((row, i) => (
|
||||
<div key={i}>
|
||||
{ row.map((swatch, i) => (
|
||||
<Swatch colour={swatch} type='small' key={i}
|
||||
onClick={() => onChange(swatch)}>
|
||||
{swatch === value && <Check size={18} strokeWidth={2} />}
|
||||
</Swatch>
|
||||
|
||||
Reference in New Issue
Block a user