Add eslint.

This commit is contained in:
Paul
2021-06-18 15:46:30 +01:00
parent 8bb6cd456b
commit 34a4bccbbe
8 changed files with 1289 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ import styled, { css } from "styled-components";
interface Props {
readonly contrast?: boolean;
readonly error?: boolean;
};
}
export default styled.button<Props>`
z-index: 1;

View File

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

View File

@@ -2,7 +2,7 @@ import styled, { css } from "styled-components";
interface Props {
readonly contrast?: boolean;
};
}
export default styled.input<Props>`
z-index: 1;