Remove stale thread toolbar search slot
This commit is contained in:
1 parent
258a36a7f0
commit
5bfd2161be
2 files changed
+1
-5
No files matched your search
@@ -95,7 +95,6 @@ type ThreadGitControlsProps = {
|
||||
readonly terminalSessions: ReadonlyArray<TerminalMenuSession>;
|
||||
readonly showActionControls?: boolean;
|
||||
readonly showDirectFileControl?: boolean;
|
||||
readonly showSearchSlot?: boolean;
|
||||
readonly onOpenFilesInspector?: () => void;
|
||||
readonly onOpenGitInspector?: () => void;
|
||||
readonly onOpenTerminal: (terminalId?: string | null) => void;
|
||||
@@ -419,7 +418,7 @@ export function ThreadGitControls(props: ThreadGitControlsProps) {
|
||||
const model = useThreadGitControlModel(props);
|
||||
const showActionControls = props.showActionControls ?? true;
|
||||
|
||||
if (!showActionControls && !props.showSearchSlot) {
|
||||
if (!showActionControls) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -537,8 +536,6 @@ export function ThreadGitControls(props: ThreadGitControlsProps) {
|
||||
</Stack.Toolbar.MenuAction>
|
||||
</Stack.Toolbar.Menu>
|
||||
) : null}
|
||||
{props.showSearchSlot ? <Stack.Toolbar.Spacer width={10} sharesBackground={false} /> : null}
|
||||
{props.showSearchSlot ? <Stack.Toolbar.SearchBarSlot /> : null}
|
||||
</Stack.Toolbar>
|
||||
);
|
||||
}
|
||||
@@ -623,7 +623,6 @@ function ThreadRouteContent(
|
||||
projectScripts: selectedThreadProject?.scripts ?? [],
|
||||
terminalSessions: terminalMenuSessions,
|
||||
showDirectFileControl: layout.usesSplitView,
|
||||
showSearchSlot: false,
|
||||
onOpenTerminal: handleOpenTerminal,
|
||||
onOpenNewTerminal: handleOpenNewTerminal,
|
||||
onRunProjectScript: handleRunProjectScript,
|
||||
|
||||
Reference in new issue
Block a user