mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-27 19:20:04 +00:00
Adds fallback to to
prop of NavigationMenuItem as it is required on a Link
This commit is contained in:
@@ -29,7 +29,7 @@ export interface NavigationMenuItemProps {
|
||||
/**
|
||||
* Router Link to if using react-router-dom
|
||||
*/
|
||||
to?: any;
|
||||
to?: string;
|
||||
/**
|
||||
* Router Link property if using react-router-dom
|
||||
*/
|
||||
@@ -93,7 +93,7 @@ export const NavigationMenuItem: React.FC<NavigationMenuItemProps> = ({
|
||||
className,
|
||||
)}>
|
||||
<Link
|
||||
to={to}
|
||||
to={to ?? ""}
|
||||
className={cn(
|
||||
"nav-link",
|
||||
dropdownItems && "dropdown-toggle",
|
||||
|
@@ -5,7 +5,7 @@ import langEn from "./lang/en.json";
|
||||
import langFa from "./lang/fa.json";
|
||||
import langList from "./lang/lang-list.json";
|
||||
|
||||
const loadMessages = (locale?: string) => {
|
||||
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
|
||||
locale = locale || "en";
|
||||
switch (locale.substr(0, 2)) {
|
||||
case "de":
|
||||
|
Reference in New Issue
Block a user