Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
rename hooksnext to hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Kracht <[email protected]>
  • Loading branch information
stefan-kracht committed Jan 15, 2024
1 parent 36bd94b commit 053605f
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/AuthenticationProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FC, PropsWithChildren, useEffect } from "react";
import { useApiActions, useApiKey } from "~/util/store/apiKey";

import { Authdialog } from "../Authdialog";
import useApiKeyHandling from "~/hooksNext/useApiKeyHandling";
import useApiKeyHandling from "~/hooks/useApiKeyHandling";

export const AuthenticationProvider: FC<PropsWithChildren> = ({ children }) => {
const { isFetched, isCurrentKeyValid, isApiKeyRequired, showLoginModal } =
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Button from "~/design/Button";
import LogoutButton from "./LogoutButton/index.";
import { RxChevronDown } from "react-icons/rx";
import { twMergeClsx } from "~/util/helpers";
import useApiKeyHandling from "~/hooksNext/useApiKeyHandling";
import useApiKeyHandling from "~/hooks/useApiKeyHandling";
import { useTranslation } from "react-i18next";

interface UserMenuProps {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/namespace/Events/History/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { EventSchemaType } from "~/api/events/schema";
import TooltipCopyBadge from "../../../../design/TooltipCopyBadge";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Row = ({
event,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Events/Listeners/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EventListenerSchemaType } from "~/api/eventListeners/schema";
import { Link } from "react-router-dom";
import { pages } from "~/util/router/pages";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Row = ({
listener,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Editor from "~/design/Editor";
import { FC } from "react";
import { useTheme } from "~/util/store/theme";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

type EditorProps = {
value: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Explorer/Workflow/ApiCommands/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getAuthHeader } from "~/api/utils";
import { useApiKey } from "~/util/store/apiKey";
import useApiKeyHandling from "~/hooksNext/useApiKeyHandling";
import useApiKeyHandling from "~/hooks/useApiKeyHandling";
import { useMemo } from "react";

export const useApiCommandTemplate = (namespace: string, workflow: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Instances/Detail/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useCancelInstance } from "~/api/logs/mutate/cancel";
import { useInstanceDetails } from "~/api/instances/query/details";
import { useInstanceId } from "../store/instanceContext";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Header = () => {
const instanceId = useInstanceId();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Instances/List/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import TooltipCopyBadge from "~/design/TooltipCopyBadge";
import { pages } from "~/util/router/pages";
import { statusToBadgeVariant } from "../utils";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const InstanceTableRow: FC<{
instance: InstanceSchemaType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Badge from "~/design/Badge";
import { GitCompare } from "lucide-react";
import { useMirrorActivity } from "~/api/tree/query/mirrorInfo";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Header = ({ activityId }: { activityId: string }) => {
const { data } = useMirrorActivity({ id: activityId });
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Mirror/Activities/Row/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import TooltipCopyBadge from "~/design/TooltipCopyBadge";
import { pages } from "~/util/router/pages";
import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Row = ({
item,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Monitoring/Instances/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { pages } from "~/util/router/pages";
import { statusToBadgeVariant } from "../../Instances/utils";
import { useNamespace } from "~/util/store/namespace";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

export const InstanceRow = ({ instance }: { instance: InstanceSchemaType }) => {
const { t } = useTranslation();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/namespace/Permissions/Tokens/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { DialogTrigger } from "~/design/Dialog";
import PermissionsInfo from "../components/PermissionsInfo";
import { TokenSchemaType } from "~/api/enterprise/tokens/schema";
import { useTranslation } from "react-i18next";
import useUpdatedAt from "~/hooksNext/useUpdatedAt";
import useUpdatedAt from "~/hooks/useUpdatedAt";

const Row = ({
token,
Expand Down

0 comments on commit 053605f

Please sign in to comment.