@@ -3,8 +3,7 @@ import { useEffect, useMemo, useRef, useState } from "preact/hooks";
33
44import { BucketClient } from "../client" ;
55import { toolbarContainerId } from "../ui/constants" ;
6- import { Dialog , useDialog } from "../ui/Dialog" ;
7- import { Close } from "../ui/icons/Close" ;
6+ import { Dialog , DialogContent , DialogHeader , useDialog } from "../ui/Dialog" ;
87import { Logo } from "../ui/icons/Logo" ;
98import { Offset , Placement } from "../ui/types" ;
109import { parseUnanchoredPosition } from "../ui/utils" ;
@@ -95,14 +94,18 @@ export default function Toolbar({
9594 } }
9695 close = { close }
9796 >
98- < FeatureSearch onSearch = { onSearch } />
99- < FeaturesTable
100- features = { searchedFeatures }
101- setEnabledOverride = { bucketClient . setFeatureOverride . bind (
102- bucketClient ,
103- ) }
104- appBaseUrl = { appBaseUrl }
105- />
97+ < DialogHeader >
98+ < FeatureSearch onSearch = { onSearch } />
99+ </ DialogHeader >
100+ < DialogContent >
101+ < FeaturesTable
102+ features = { searchedFeatures }
103+ setEnabledOverride = { bucketClient . setFeatureOverride . bind (
104+ bucketClient ,
105+ ) }
106+ appBaseUrl = { appBaseUrl }
107+ />
108+ </ DialogContent >
106109 </ Dialog >
107110 </ div >
108111 ) ;
@@ -136,11 +139,7 @@ function ToolbarToggle({
136139 return (
137140 < div ref = { innerRef } class = { toggleClasses } onClick = { onClick } style = { offsets } >
138141 < div class = { indicatorClasses } > </ div >
139- { isOpen ? (
140- < Close width = "16" height = "16" />
141- ) : (
142- < Logo height = "13px" width = "13px" />
143- ) }
142+ < Logo height = "13px" width = "13px" />
144143 </ div >
145144 ) ;
146145}
0 commit comments