1- import React , { useCallback , useEffect , useRef , useState } from "react" ;
1+ import { useCallback , useEffect , useRef , useState } from "react" ;
22import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine" ;
33import type {
44 DragLocationHistory ,
@@ -18,8 +18,6 @@ import { ChevronRightIcon } from "@plane/propel/icons";
1818import { TOAST_TYPE , setToast } from "@plane/propel/toast" ;
1919import { Tooltip } from "@plane/propel/tooltip" ;
2020import type { IFavorite } from "@plane/types" ;
21- // constants
22-
2321// helpers
2422import { cn } from "@plane/utils" ;
2523// hooks
@@ -31,6 +29,7 @@ import { FavoriteRoot } from "./favorite-items";
3129import type { TargetData } from "./favorites.helpers" ;
3230import { getInstructionFromPayload } from "./favorites.helpers" ;
3331import { NewFavoriteFolder } from "./new-fav-folder" ;
32+ import { IconButton } from "@plane/propel/icon-button" ;
3433
3534export const SidebarFavoritesMenu = observer ( function SidebarFavoritesMenu ( ) {
3635 // states
@@ -111,6 +110,7 @@ export const SidebarFavoritesMenu = observer(function SidebarFavoritesMenu() {
111110 title : t ( "success" ) ,
112111 message : t ( "favorite_removed_successfully" ) ,
113112 } ) ;
113+ return ;
114114 } )
115115 . catch ( ( ) => {
116116 setToast ( {
@@ -201,17 +201,16 @@ export const SidebarFavoritesMenu = observer(function SidebarFavoritesMenu() {
201201 </ Disclosure . Button >
202202 < div className = "flex items-center opacity-0 pointer-events-none group-hover/favorites-button:opacity-100 group-hover/favorites-button:pointer-events-auto" >
203203 < Tooltip tooltipHeading = { t ( "create_folder" ) } tooltipContent = "" >
204- < button
205- type = "button "
206- className = "p-0.5 rounded-sm hover:bg-layer-transparent-hover flex-shrink-0 grid place-items-center "
204+ < IconButton
205+ variant = "ghost "
206+ size = "sm "
207207 onClick = { ( ) => {
208208 setCreateNewFolder ( true ) ;
209209 if ( ! isFavoriteMenuOpen ) toggleFavoriteMenu ( ! isFavoriteMenuOpen ) ;
210210 } }
211211 aria-label = { t ( "aria_labels.projects_sidebar.create_favorites_folder" ) }
212- >
213- < FolderPlus className = "size-3" />
214- </ button >
212+ icon = { FolderPlus }
213+ />
215214 </ Tooltip >
216215 < Disclosure . Button
217216 as = "button"
0 commit comments