Skip to content

Commit

Permalink
fix context imports (#4668)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored May 21, 2024
1 parent 308041c commit 4918bcb
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { z } from "zod";
import { useDeploymentTargetList } from "../lib/hooks/useDeploymentTarget";
import { RestrictedNamespaces } from "../main/home/add-on-dashboard/legacy_AddOnDashboard";
import api from "../shared/api";
import { Context } from "../shared/Context";
import { Context } from "shared/Context";
import InputRow from "./form-components/InputRow";
import Button from "./porter/Button";
import Modal from "./porter/Modal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
getFinalVariablesForKeyValueArray,
getMetadata as getMetadataForKeyValueArray,
} from "./field-components/KeyValueArray";
import { Context } from "../../shared/Context";
import { Context } from "shared/Context";
import { getFinalVariablesForArrayInput } from "./field-components/ArrayInput";
import { getFinalVariablesForCheckbox } from "./field-components/Checkbox";
import { getFinalVariablesForSelect } from "./field-components/Select";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import Selector from "../../Selector";
import styled from "styled-components";
import useFormField from "../hooks/useFormField";
import { Context } from "../../../shared/Context";
import { Context } from "shared/Context";
import { hasSetValue } from "../utils";

const Select: React.FC<SelectField> = (props) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import branch_icon from "legacy/assets/branch.png";
import styled from "styled-components";

import api from "../../shared/api";
import { Context } from "../../shared/Context";
import { Context } from "shared/Context";
import { ActionConfigType } from "../../shared/types";
import Loading from "../Loading";
import SearchBar from "../SearchBar";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import info from "legacy/assets/info.svg";
import styled from "styled-components";

import api from "../../shared/api";
import { Context } from "../../shared/Context";
import { Context } from "shared/Context";
import { ActionConfigType, FileType } from "../../shared/types";
import Loading from "../Loading";

Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/legacy/main/MainWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { withRouter, type RouteComponentProps } from "react-router";
import AuthzProvider from "shared/auth/AuthzContext";

import AuthnProvider from "../shared/auth/AuthnContext";
import { ContextProvider } from "../shared/Context";
import { ContextProvider } from "shared/Context";
import Main from "./Main";
// required styles for Ory Elements
import "@ory/elements/style.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { match } from "ts-pattern";

import { useDeploymentTarget } from "shared/DeploymentTargetContext";

import { Context } from "../../../../shared/Context";
import { Context } from "shared/Context";
import { Addon } from "./Addon";
import { AppIcon, AppSource } from "./AppMeta";
import { type AppRevisionWithSource } from "./types";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styled from "styled-components";

import ConfirmOverlay from "../../../components/ConfirmOverlay";
import api from "../../../shared/api";
import { Context } from "../../../shared/Context";
import { Context } from "shared/Context";

interface Props {
gitlabData: any[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useContext, useEffect, useState } from "react";
import { FullActionConfigType } from "../../../../shared/types";
import api from "../../../../shared/api";
import { Context } from "../../../../shared/Context";
import { Context } from "shared/Context";
import styled from "styled-components";
import YamlEditor from "../../../../components/YamlEditor";
import Loading from "../../../../components/Loading";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import styled from "styled-components";

import Loading from "../../../components/Loading";
import api from "../../../shared/api";
import { Context } from "../../../shared/Context";
import { Context } from "shared/Context";

interface GithubAppAccessData {
username?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import styled from "styled-components";

import Loading from "../../../components/Loading";
import api from "../../../shared/api";
import { Context } from "../../../shared/Context";
import { Context } from "shared/Context";

type Props = {};

Expand Down

0 comments on commit 4918bcb

Please sign in to comment.