Update all packages.

Update vite fork to latest. (fixes voice)
This commit is contained in:
Paul
2021-07-06 16:07:04 +01:00
parent 8012b680a5
commit 238b6950a8
6 changed files with 239 additions and 274 deletions

View File

@@ -3,6 +3,7 @@ import { Palette } from "@styled-icons/boxicons-solid";
import styled, { css } from "styled-components";
import { useRef } from "preact/hooks";
import { RefObject } from "preact";
interface Props {
value: string;
@@ -91,14 +92,14 @@ const Rows = styled.div`
`;
export default function ColourSwatches({ value, onChange }: Props) {
const ref = useRef<HTMLInputElement>();
const ref = useRef<HTMLInputElement>() as RefObject<HTMLInputElement>;
return (
<SwatchesBase>
<Swatch
colour={value}
type="large"
onClick={() => ref.current.click()}>
onClick={() => ref.current?.click()}>
<Palette size={32} />
</Swatch>
<input