Skip to content

Commit

Permalink
Replace any with actual type
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonBackup committed Feb 22, 2024
1 parent 9d19df9 commit 4969f9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import * as React from "react";
import { Link, useLocation, useNavigate } from "react-router-dom";
import { Link, Location, useLocation, useNavigate } from "react-router-dom";
import { ListGroupItem } from "reactstrap";
import MenuItemModel from "../../models/MenuItemModel";

Expand All @@ -22,7 +22,7 @@ function RoutingMenuItem(props: MenuItemProps) {
const location = useLocation();
const navigate = useNavigate();

const isOpened = (location: any): boolean => {
const isOpened = (location: Location): boolean => {
return location.pathname.startsWith(props.MenuItem.NavPath);
};

Expand Down
2 changes: 1 addition & 1 deletion src/Moryx.CommandCenter.Web/src/common/container/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function App(props: AppPropModel & AppDispatchPropModel) {

React.useEffect(() => {
updateLoadAndModulesTimerRef.current = setInterval(loadAndModulesUpdater, 5000);
props.ModulesRestClient.modules().then((data: any) => props?.onUpdateModules(data));
props.ModulesRestClient.modules().then((data) => props?.onUpdateModules(data));

return () => {
clearInterval(updateClockTimerRef.current!);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import queryString from "query-string";
import * as React from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { Location, useLocation, useNavigate } from "react-router-dom";
import { Button, ButtonGroup, Col, Container, Row } from "reactstrap";
import Entry from "../../models/Entry";
import ConfigEditor from "./ConfigEditor";
Expand Down Expand Up @@ -34,7 +34,7 @@ function NavigableConfigEditor(props: NavigableConfigEditorPropModel) {
resolveEntryChainByPath(location, props.Entries);
}, [location, props.Entries]);

const resolveEntryChainByPath = (location: any, entries: Entry[]): void => {
const resolveEntryChainByPath = (location: Location, entries: Entry[]): void => {
if (location !== undefined) {
const query = queryString.parse(location.search);
if (query != null && "path" in query) {
Expand Down Expand Up @@ -82,7 +82,7 @@ function NavigableConfigEditor(props: NavigableConfigEditorPropModel) {
};

const preRenderBreadcrumb = (): React.ReactNode => {
const entryChainButtons = entryChain.map((entry: any, idx: any) => (
const entryChainButtons = entryChain.map((entry, idx) => (
<Button key={idx} color="light" onClick={() => onClickBreadcrumb(entry)} disabled={idx === entryChain.length - 1} >{entry.displayName}</Button>
));

Expand Down

0 comments on commit 4969f9e

Please sign in to comment.