@@ -82,7 +82,7 @@ function handleHeaderContextMenu(
8282 ContextMenuModel . showContextMenu ( menu , e ) ;
8383}
8484
85- function getViewIconElem ( viewIconUnion : string | IconButtonDecl , blockData : Block ) : JSX . Element {
85+ function getViewIconElem ( viewIconUnion : string | IconButtonDecl , blockData : Block ) : React . ReactElement {
8686 if ( viewIconUnion == null || typeof viewIconUnion === "string" ) {
8787 const viewIcon = viewIconUnion as string ;
8888 return < div className = "block-frame-view-icon" > { getBlockHeaderIcon ( viewIcon , blockData ) } </ div > ;
@@ -108,8 +108,8 @@ function computeEndIcons(
108108 viewModel : ViewModel ,
109109 nodeModel : NodeModel ,
110110 onContextMenu : ( e : React . MouseEvent < HTMLDivElement > ) => void
111- ) : JSX . Element [ ] {
112- const endIconsElem : JSX . Element [ ] = [ ] ;
111+ ) : React . ReactElement [ ] {
112+ const endIconsElem : React . ReactElement [ ] = [ ] ;
113113 const endIconButtons = util . useAtomValueSafe ( viewModel ?. endIconButtons ) ;
114114 const magnified = jotai . useAtomValue ( nodeModel . isMagnified ) ;
115115 const ephemeral = jotai . useAtomValue ( nodeModel . isEphemeral ) ;
@@ -206,12 +206,12 @@ const BlockFrame_Header = ({
206206
207207 const endIconsElem = computeEndIcons ( viewModel , nodeModel , onContextMenu ) ;
208208 const viewIconElem = getViewIconElem ( viewIconUnion , blockData ) ;
209- let preIconButtonElem : JSX . Element = null ;
209+ let preIconButtonElem : React . ReactElement = null ;
210210 if ( preIconButton ) {
211211 preIconButtonElem = < IconButton decl = { preIconButton } className = "block-frame-preicon-button" /> ;
212212 }
213213
214- const headerTextElems : JSX . Element [ ] = [ ] ;
214+ const headerTextElems : React . ReactElement [ ] = [ ] ;
215215 if ( typeof headerTextUnion === "string" ) {
216216 if ( ! util . isBlank ( headerTextUnion ) ) {
217217 headerTextElems . push (
@@ -310,8 +310,8 @@ const HeaderTextElem = React.memo(({ elem, preview }: { elem: HeaderElem; previe
310310 return null ;
311311} ) ;
312312
313- function renderHeaderElements ( headerTextUnion : HeaderElem [ ] , preview : boolean ) : JSX . Element [ ] {
314- const headerTextElems : JSX . Element [ ] = [ ] ;
313+ function renderHeaderElements ( headerTextUnion : HeaderElem [ ] , preview : boolean ) : React . ReactElement [ ] {
314+ const headerTextElems : React . ReactElement [ ] = [ ] ;
315315 for ( let idx = 0 ; idx < headerTextUnion . length ; idx ++ ) {
316316 const elem = headerTextUnion [ idx ] ;
317317 const renderedElement = < HeaderTextElem elem = { elem } key = { idx } preview = { preview } /> ;
@@ -536,7 +536,7 @@ const BlockFrame_Default_Component = (props: BlockFrameProps) => {
536536 const magnifiedBlockBlur = jotai . useAtomValue ( magnifiedBlockBlurAtom ) ;
537537 const [ magnifiedBlockOpacityAtom ] = React . useState ( ( ) => getSettingsKeyAtom ( "window:magnifiedblockopacity" ) ) ;
538538 const magnifiedBlockOpacity = jotai . useAtomValue ( magnifiedBlockOpacityAtom ) ;
539- const connBtnRef = React . useRef < HTMLDivElement > ( ) ;
539+ const connBtnRef = React . useRef < HTMLDivElement > ( null ) ;
540540 const noHeader = util . useAtomValueSafe ( viewModel ?. noHeader ) ;
541541
542542 React . useEffect ( ( ) => {
0 commit comments