Nicer cert type create select

This commit is contained in:
Jamie Curnow
2023-02-27 17:21:10 +10:00
parent 6681da605e
commit 83a9666807
7 changed files with 93 additions and 84 deletions

View File

@ -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>

View File

@ -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;
}

View 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 };

View File

@ -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";