fix: Header search input is on the wrong side on Drafts page
This commit is contained in:
@@ -11,13 +11,21 @@ import { searchPath } from "~/utils/routeHelpers";
|
|||||||
import Input, { Outline } from "./Input";
|
import Input, { Outline } from "./Input";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
/** A string representing where the search started, for tracking. */
|
||||||
source: string;
|
source: string;
|
||||||
|
/** Placeholder text for the input. */
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
|
/** Label for the input. */
|
||||||
label?: string;
|
label?: string;
|
||||||
|
/** Whether the label should be hidden. */
|
||||||
labelHidden?: boolean;
|
labelHidden?: boolean;
|
||||||
|
/** An optional ID of a collection to search within. */
|
||||||
collectionId?: string;
|
collectionId?: string;
|
||||||
|
/** The current value of the input. */
|
||||||
value?: string;
|
value?: string;
|
||||||
|
/** Event handler for when the input value changes. */
|
||||||
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => unknown;
|
||||||
|
/** Event handler for when a key is pressed. */
|
||||||
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => unknown;
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => unknown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -53,15 +53,11 @@ function Drafts() {
|
|||||||
<Scene
|
<Scene
|
||||||
icon={<DraftsIcon />}
|
icon={<DraftsIcon />}
|
||||||
title={t("Drafts")}
|
title={t("Drafts")}
|
||||||
|
left={<InputSearchPage source="drafts" label={t("Search documents")} />}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<Action>
|
||||||
<Action>
|
<NewDocumentMenu />
|
||||||
<InputSearchPage source="drafts" label={t("Search documents")} />
|
</Action>
|
||||||
</Action>
|
|
||||||
<Action>
|
|
||||||
<NewDocumentMenu />
|
|
||||||
</Action>
|
|
||||||
</>
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Heading>{t("Drafts")}</Heading>
|
<Heading>{t("Drafts")}</Heading>
|
||||||
|
|||||||
Reference in New Issue
Block a user