There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
refactor: refactor input component, to support tab-index
qishaoxuanec80998b82f8
diff --git a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Email.tsx b/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Email.tsxdeleted file mode 100644index 92219a32e4..0000000000--- a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Email.tsx+++ /dev/null@@ -1,18 +0,0 @@-import React, { useState } from 'react';--import { Input } from '@toeverything/components/ui';-import { ModifyPanelContentProps } from './types';--export default ({ onValueChange, initialValue }: ModifyPanelContentProps) => {- const [text, setText] = useState(initialValue?.value || '');- return (- <Input- placeholder="Input email"- value={text}- onChange={e => {- setText(e.target.value);- onValueChange(e.target.value);- }}- />- );-};diff --git a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Location.tsx b/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Location.tsxdeleted file mode 100644index 65ca9d3e6b..0000000000--- a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Location.tsx+++ /dev/null@@ -1,18 +0,0 @@-import React, { useState } from 'react';--import { Input } from '@toeverything/components/ui';-import { ModifyPanelContentProps } from './types';--export default ({ onValueChange, initialValue }: ModifyPanelContentProps) => {- const [text, setText] = useState(initialValue?.value || '');- return (- <Input- placeholder="Input location"- value={text}- onChange={e => {- setText(e.target.value);- onValueChange(e.target.value);- }}- />- );-};diff --git a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Phone.tsx b/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Phone.tsxdeleted file mode 100644index 09241531d8..0000000000--- a/libs/components/editor-core/src/block-pendant/pendant-modify-panel/Phone.tsx+++ /dev/null@@ -1,18 +0,0 @@-import React, { useState } from 'react';--import { Input } from '@toeverything/components/ui';-import { ModifyPanelContentProps } from './types';--export default ({ onValueChange, initialValue }: ModifyPanelContentProps) => {- const [text, setText] = useState(initialValue?.value || '');- return (- <Input- placeholder="Input phone"- value={text}- onChange={e => {- setText(e.target.value);- onValueChange(e.target.value);- }}- />- );-};