mirror of
https://github.com/discourse/discourse.git
synced 2025-01-10 20:23:47 +08:00
a879bcdc35
This converts the `<AdminPageHeader />` component and the `<AdminPageSubheader />` components into new components that can be used outside of admin, and updates the CSS classes. Also introduces a `<DPageActionButton />` component and child components for the header action buttons. I have to keep the old admin-only components around for now until plugins are updated, then we can remove it, and remove the re-exports that are done within admin-page-action-button.gjs
26 lines
858 B
Plaintext
26 lines
858 B
Plaintext
// TODO (martin) Delete this once we have removed references from plugins.
|
|
|
|
import {
|
|
DangerActionListItem,
|
|
DangerButton,
|
|
DefaultActionListItem,
|
|
DefaultButton,
|
|
DPageActionButton,
|
|
DPageActionListItem,
|
|
PrimaryActionListItem,
|
|
PrimaryButton,
|
|
WrappedActionListItem,
|
|
WrappedButton,
|
|
} from "discourse/components/d-page-action-button";
|
|
|
|
export { DangerActionListItem as DangerActionListItem };
|
|
export { DangerButton as DangerButton };
|
|
export { DefaultActionListItem as DefaultActionListItem };
|
|
export { DefaultButton as DefaultButton };
|
|
export { DPageActionButton as DPageActionButton };
|
|
export { DPageActionListItem as DPageActionListItem };
|
|
export { PrimaryActionListItem as PrimaryActionListItem };
|
|
export { PrimaryButton as PrimaryButton };
|
|
export { WrappedActionListItem as WrappedActionListItem };
|
|
export { WrappedButton as WrappedButton };
|