Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix context imports #4668

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading