|
|
@ -14,6 +14,7 @@ import { VerticalIcons } from '../../types/vertical-icons-panel' |
|
|
|
import Home from './components/Home' |
|
|
|
import Home from './components/Home' |
|
|
|
import Icon from './components/Icon' |
|
|
|
import Icon from './components/Icon' |
|
|
|
import Settings from './components/Settings' |
|
|
|
import Settings from './components/Settings' |
|
|
|
|
|
|
|
import { Chevron } from './components/Chevron' |
|
|
|
export interface RemixUiVerticalIconsPanelProps { |
|
|
|
export interface RemixUiVerticalIconsPanelProps { |
|
|
|
verticalIconsPlugin: VerticalIcons |
|
|
|
verticalIconsPlugin: VerticalIcons |
|
|
|
} |
|
|
|
} |
|
|
@ -90,7 +91,7 @@ export function RemixUiVerticalIconsPanel ({ |
|
|
|
}, []) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
const found = iconPanelRef.current!.querySelector('#verticalIconsKindudapp') |
|
|
|
// const found = iconPanelRef.current!.querySelector('#verticalIconsKindudapp')
|
|
|
|
if (verticalIconsPlugin.targetProfileForChange && verticalIconsPlugin.targetProfileForChange.udapp) { |
|
|
|
if (verticalIconsPlugin.targetProfileForChange && verticalIconsPlugin.targetProfileForChange.udapp) { |
|
|
|
const doWalkThroughEvent = new Event('doWalkThrough') |
|
|
|
const doWalkThroughEvent = new Event('doWalkThrough') |
|
|
|
document.dispatchEvent(doWalkThroughEvent) |
|
|
|
document.dispatchEvent(doWalkThroughEvent) |
|
|
@ -100,7 +101,7 @@ export function RemixUiVerticalIconsPanel ({ |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div id="iconsP" className="h-100"> |
|
|
|
<div id="iconsP" className="h-100"> |
|
|
|
<div className="remixui_icons" ref={iconPanelRef}> |
|
|
|
<div className="remixui_icons" ref={iconPanelRef}> |
|
|
|
<div className="remixui_default-icons-container"> |
|
|
|
<div className="remixui_default-icons-container remixui_requiredSection"> |
|
|
|
<Home verticalIconPlugin={verticalIconsPlugin} /> |
|
|
|
<Home verticalIconPlugin={verticalIconsPlugin} /> |
|
|
|
{verticalIconsPlugin.targetProfileForChange && |
|
|
|
{verticalIconsPlugin.targetProfileForChange && |
|
|
|
Object.keys(verticalIconsPlugin.targetProfileForChange).length |
|
|
|
Object.keys(verticalIconsPlugin.targetProfileForChange).length |
|
|
@ -309,10 +310,10 @@ export function RemixUiVerticalIconsPanel ({ |
|
|
|
} |
|
|
|
} |
|
|
|
/> |
|
|
|
/> |
|
|
|
))} |
|
|
|
))} |
|
|
|
{scrollableRef.current && scrollableRef.current!.scrollHeight > scrollableRef.current!.clientHeight |
|
|
|
<Chevron |
|
|
|
? <i className="fa fa-chevron-up remixui_icon-chevron mt-0 mb-0 ml-1 pl-3"></i> |
|
|
|
divElementRef={scrollableRef} |
|
|
|
: null |
|
|
|
cssRule={'fa fa-chevron-up remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} |
|
|
|
} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
id="remixuiScrollable" |
|
|
|
id="remixuiScrollable" |
|
|
@ -361,10 +362,10 @@ export function RemixUiVerticalIconsPanel ({ |
|
|
|
Object.keys(verticalIconsPlugin.targetProfileForChange).length ? ( |
|
|
|
Object.keys(verticalIconsPlugin.targetProfileForChange).length ? ( |
|
|
|
<Fragment> |
|
|
|
<Fragment> |
|
|
|
<Settings> |
|
|
|
<Settings> |
|
|
|
{scrollableRef.current && scrollableRef.current!.scrollHeight > scrollableRef.current!.clientHeight |
|
|
|
<Chevron |
|
|
|
? <i className="fa fa-chevron-down remixui_icon-chevron mt-0 mb-0 ml-1 pl-3"></i> |
|
|
|
divElementRef={scrollableRef} |
|
|
|
: null |
|
|
|
cssRule={'fa fa-chevron-down remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} |
|
|
|
} |
|
|
|
/> |
|
|
|
{Object.keys(verticalIconsPlugin.targetProfileForChange) |
|
|
|
{Object.keys(verticalIconsPlugin.targetProfileForChange) |
|
|
|
.filter(p => p === 'settings') |
|
|
|
.filter(p => p === 'settings') |
|
|
|
.map(p => ( |
|
|
|
.map(p => ( |
|
|
|