mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-17 06:54:34 +00:00
Nicer cert type create select
This commit is contained in:
@ -47,7 +47,6 @@ function LocalePicker({ onChange, className }: LocalPickerProps) {
|
||||
<MenuItem
|
||||
icon={<Flag countryCode={getFlagCodeForLocale(item[0])} />}
|
||||
onClick={() => changeTo(item[0])}
|
||||
// rel={item[1]}
|
||||
key={`locale-${item[0]}`}>
|
||||
<span>{intl.formatMessage({ id: `locale-${item[1]}` })}</span>
|
||||
</MenuItem>
|
||||
|
@ -173,7 +173,6 @@ const DesktopNavigation: FC = () => {
|
||||
navItems.findIndex((item) => {
|
||||
// Find the nav item whose location / sub items location is the beginning of the currently active path
|
||||
if (item.to) {
|
||||
// console.debug(item.to, path);
|
||||
if (item.to === "/") {
|
||||
return path === item.to;
|
||||
}
|
||||
|
23
frontend/src/components/PrettyMenuButton.tsx
Normal file
23
frontend/src/components/PrettyMenuButton.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import { Button, MenuButton, MenuButtonProps } from "@chakra-ui/react";
|
||||
import { FiChevronDown } from "react-icons/fi";
|
||||
|
||||
function PrettyMenuButton(props: MenuButtonProps) {
|
||||
return (
|
||||
<MenuButton
|
||||
size="sm"
|
||||
as={Button}
|
||||
fontFamily="heading"
|
||||
bgGradient="linear(to-r, red.400,pink.400)"
|
||||
color="white"
|
||||
rightIcon={<FiChevronDown />}
|
||||
_hover={{
|
||||
bgGradient: "linear(to-r, red.400,pink.400)",
|
||||
boxShadow: "xl",
|
||||
}}
|
||||
{...props}>
|
||||
{props.children}
|
||||
</MenuButton>
|
||||
);
|
||||
}
|
||||
|
||||
export { PrettyMenuButton };
|
@ -9,6 +9,7 @@ export * from "./Monospace";
|
||||
export * from "./Navigation";
|
||||
export * from "./Permissions";
|
||||
export * from "./PrettyButton";
|
||||
export * from "./PrettyMenuButton";
|
||||
export * from "./SiteWrapper";
|
||||
export * from "./SpinnerPage";
|
||||
export * from "./Table";
|
||||
|
Reference in New Issue
Block a user