refactor(ui): replace PlusSignIcon with Add01Icon in BlockEditor
- swap PlusSignIcon for Add01Icon in Block.client.js add button - remove PlusSignIcon export from shared icons index - update README to reflect renamed icon
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import React, { useEffect, useImperativeHandle, useRef, useState, forwardRef } from 'react';
|
||||
import { PlusSignIcon, DragDropVerticalIcon } from '@zen/core/shared/icons';
|
||||
import { Add01Icon, DragDropVerticalIcon } from '@zen/core/shared/icons';
|
||||
import { getBlockDef } from './blockRegistry.js';
|
||||
import {
|
||||
getCaretOffset,
|
||||
@@ -258,7 +258,7 @@ const Block = forwardRef(function Block(
|
||||
disabled={disabled}
|
||||
className="w-5 h-5 flex items-center justify-center rounded text-neutral-500 hover:bg-neutral-200 dark:hover:bg-neutral-700/60 hover:text-neutral-900 dark:hover:text-white text-sm leading-none"
|
||||
>
|
||||
<PlusSignIcon width={14} height={14} />
|
||||
<Add01Icon width={14} height={14} />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@@ -77,7 +77,7 @@ En mode sélection multi-blocs :
|
||||
## Drag and drop
|
||||
|
||||
Chaque bloc affiche au survol :
|
||||
- une poignée `PlusSignIcon` pour insérer un bloc en dessous (ouvre le slash menu)
|
||||
- une poignée `Add01Icon` pour insérer un bloc en dessous (ouvre le slash menu)
|
||||
- une poignée `DragDropVerticalIcon` pour glisser-déposer (réordonner)
|
||||
|
||||
Les icônes proviennent de [`src/shared/icons/index.js`](../../icons/index.js).
|
||||
|
||||
Reference in New Issue
Block a user