From 7c50b27fc6475f682b801372727186bebd5abd36 Mon Sep 17 00:00:00 2001 From: Jack Works Date: Mon, 30 Dec 2019 21:49:03 +0800 Subject: [PATCH] fix: ci build error --- src/components/shared/qrcode.tsx | 1 + src/database/__tests__/types.ts | 2 +- src/extension/content-script/index.tsx | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/shared/qrcode.tsx b/src/components/shared/qrcode.tsx index 6088f0fa50cb..b0033e214745 100644 --- a/src/components/shared/qrcode.tsx +++ b/src/components/shared/qrcode.tsx @@ -32,6 +32,7 @@ export function QrCode(props: { qr.toCanvas(ref.current, props.text, props.options) return () => { // if already rendered canvas, do not re-render img + // eslint-disable-next-line react-hooks/exhaustive-deps cache.set(props.text, ref.current?.toDataURL()) } }, [props.options, props.text]) diff --git a/src/database/__tests__/types.ts b/src/database/__tests__/types.ts index c38310ab5328..f43f8e557a01 100644 --- a/src/database/__tests__/types.ts +++ b/src/database/__tests__/types.ts @@ -10,7 +10,7 @@ import { import { generate_ECDH_256k1_KeyPair, import_ECDH_256k1_Key } from '../../utils/crypto.subtle' test('ProfileIdentifier', () => { - const normal = new ProfileIdentifier('facebook.com!', 'user_id') + const normal = new ProfileIdentifier('facebook.com', 'user_id') expect(normal.toText()).toBe('person:facebook.com/user_id') expect(normal.friendlyToText()).toBe('user_id@facebook.com') expect(normal.network).toBe('facebook.com') diff --git a/src/extension/content-script/index.tsx b/src/extension/content-script/index.tsx index d994f1316607..8427605abcd9 100644 --- a/src/extension/content-script/index.tsx +++ b/src/extension/content-script/index.tsx @@ -4,4 +4,3 @@ import * as HoloflowsKit from '@holoflows/kit' import React from 'react' Object.assign(window, { React }) Object.assign(window, HoloflowsKit) -