Lexical: lint, update test
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d24998190e
commit
d297998910
4 changed files with 7 additions and 7 deletions
|
@ -340,7 +340,7 @@ const useDraggableBlockMenu = (
|
||||||
return createPortal(
|
return createPortal(
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className='draggable-block-menu absolute top-0 right-0 cursor-grab rounded px-[1px] py-0.5 opacity-0 will-change-transform hover:bg-gray-100 active:cursor-grabbing hover:dark:bg-primary-700'
|
className='draggable-block-menu absolute right-0 top-0 cursor-grab rounded px-[1px] py-0.5 opacity-0 will-change-transform hover:bg-gray-100 active:cursor-grabbing hover:dark:bg-primary-700'
|
||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
draggable
|
draggable
|
||||||
onDragStart={onDragStart}
|
onDragStart={onDragStart}
|
||||||
|
|
|
@ -159,13 +159,13 @@ const FloatingLinkEditor = ({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={editorRef}
|
ref={editorRef}
|
||||||
className='absolute top-0 left-0 z-10 w-full max-w-sm rounded-lg bg-white opacity-0 shadow-md transition-opacity will-change-transform dark:bg-gray-900'
|
className='absolute left-0 top-0 z-10 w-full max-w-sm rounded-lg bg-white opacity-0 shadow-md transition-opacity will-change-transform dark:bg-gray-900'
|
||||||
>
|
>
|
||||||
<div className='relative my-2 mx-3 box-border block rounded-2xl border-0 bg-gray-100 py-2 px-3 text-sm text-gray-800 outline-0 dark:bg-gray-800 dark:text-gray-100'>
|
<div className='relative mx-3 my-2 box-border block rounded-2xl border-0 bg-gray-100 px-3 py-2 text-sm text-gray-800 outline-0 dark:bg-gray-800 dark:text-gray-100'>
|
||||||
{isEditMode ? (
|
{isEditMode ? (
|
||||||
<>
|
<>
|
||||||
<input
|
<input
|
||||||
className='-my-2 -mx-3 w-full border-0 bg-transparent py-2 px-3 text-sm text-gray-900 outline-0 dark:text-gray-100'
|
className='-mx-3 -my-2 w-full border-0 bg-transparent px-3 py-2 text-sm text-gray-900 outline-0 dark:text-gray-100'
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
value={linkUrl}
|
value={linkUrl}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
|
|
|
@ -198,7 +198,7 @@ const BlockTypeDropdown = ({ editor, anchorElem, blockType, icon }: {
|
||||||
<Icon src={require('@tabler/icons/chevron-down.svg')} className='-bottom-2 h-4 w-4' />
|
<Icon src={require('@tabler/icons/chevron-down.svg')} className='-bottom-2 h-4 w-4' />
|
||||||
{showDropDown && (
|
{showDropDown && (
|
||||||
<div
|
<div
|
||||||
className='absolute top-9 left-0 z-10 flex h-[38px] gap-0.5 rounded-lg bg-white p-1 shadow-lg transition-[opacity] dark:bg-gray-900'
|
className='absolute left-0 top-9 z-10 flex h-[38px] gap-0.5 rounded-lg bg-white p-1 shadow-lg transition-[opacity] dark:bg-gray-900'
|
||||||
>
|
>
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
onClick={formatParagraph}
|
onClick={formatParagraph}
|
||||||
|
@ -350,7 +350,7 @@ const TextFormatFloatingToolbar = ({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={popupCharStylesEditorRef}
|
ref={popupCharStylesEditorRef}
|
||||||
className='absolute top-0 left-0 z-10 flex h-[38px] gap-0.5 rounded-lg bg-white p-1 opacity-0 shadow-lg transition-[opacity] dark:bg-gray-900'
|
className='absolute left-0 top-0 z-10 flex h-[38px] gap-0.5 rounded-lg bg-white p-1 opacity-0 shadow-lg transition-[opacity] dark:bg-gray-900'
|
||||||
>
|
>
|
||||||
{editor.isEditable() && (
|
{editor.isEditable() && (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -386,7 +386,7 @@ describe('compose reducer', () => {
|
||||||
type: actions.COMPOSE_SUGGESTION_TAGS_UPDATE,
|
type: actions.COMPOSE_SUGGESTION_TAGS_UPDATE,
|
||||||
id: 'home',
|
id: 'home',
|
||||||
token: 'aaadken3',
|
token: 'aaadken3',
|
||||||
currentTrends: ImmutableList([
|
tags: ImmutableList([
|
||||||
TagRecord({ name: 'hashtag' }),
|
TagRecord({ name: 'hashtag' }),
|
||||||
]),
|
]),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue