This commit is contained in:
Andrei Pohilko
2025-07-07 14:04:09 +01:00
parent f22c84c288
commit 2da8f23285
6 changed files with 25 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ import { useGetLatestVersion } from "../../API/releases";
import { isNewerVersion } from "../../utils";
import { LatestChartVersion } from "../../API/interfaces";
import useNavigateWithSearchParams from "../../hooks/useNavigateWithSearchParams";
import {useInView} from "react-intersection-observer";
import { useInView } from "react-intersection-observer";
type InstalledPackageCardProps = {
release: Release;
@@ -27,7 +27,7 @@ export default function InstalledPackageCard({
const navigate = useNavigateWithSearchParams();
const [isMouseOver, setIsMouseOver] = useState(false);
const {ref, inView} = useInView({
const { ref, inView } = useInView({
threshold: 0.3,
triggerOnce: true,
});

View File

@@ -39,7 +39,8 @@ export default function ErrorModal({
and support.{" "}
<a
href="https://www.komodor.com/helm-dash/?utm_campaign=Helm%20Dashboard%20%7C%20CTA&utm_source=helm-dash&utm_medium=cta&utm_content=helm-dash"
target="_blank" rel="noreferrer"
target="_blank"
rel="noreferrer"
>
<span className="text-link-color underline">Sign up for free.</span>
</a>

View File

@@ -17,9 +17,12 @@ export const GeneralDetails = ({
onReleaseNameInput: (chartName: string) => void;
}) => {
const [namespaceInputValue, setNamespaceInputValue] = useState(namespace);
const namespaceInputValueDebounced = useDebounce<string>(namespaceInputValue, 500);
const namespaceInputValueDebounced = useDebounce<string>(
namespaceInputValue,
500
);
useEffect(() => {
onNamespaceInput(namespaceInputValueDebounced);
onNamespaceInput(namespaceInputValueDebounced);
}, [namespaceInputValueDebounced, onNamespaceInput]);
const { context } = useParams();
const inputClassName = ` text-lg py-1 px-2 border border-1 border-gray-300 ${

View File

@@ -21,9 +21,7 @@ export default function RevisionsList({
const { namespace, chart } = useParams();
const changeRelease = (newRevision: number) => {
navigate(
`/${namespace}/${chart}/installed/revision/${newRevision}`
);
navigate(`/${namespace}/${chart}/installed/revision/${newRevision}`);
};
return (