Skip to content

Commit

Permalink
chore: Update import paths for CodeRepository to CopilotCodeRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jul 9, 2024
1 parent 3a4ae31 commit ad48ea5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Route from "Common/Types/API/Route";
import ObjectID from "Common/Types/ObjectID";
import ModelDelete from "CommonUI/src/Components/ModelDelete/ModelDelete";
import Navigation from "CommonUI/src/Utils/Navigation";
import CodeRepository from "Model/Models/CodeRepository";
import CodeRepository from "Model/Models/CopilotCodeRepository";
import React, { Fragment, FunctionComponent, ReactElement } from "react";

const CodeRepositoryDelete: FunctionComponent<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CardModelDetail from "CommonUI/src/Components/ModelDetail/CardModelDetail
import FieldType from "CommonUI/src/Components/Types/FieldType";
import DropdownUtil from "CommonUI/src/Utils/Dropdown";
import Navigation from "CommonUI/src/Utils/Navigation";
import CodeRepository from "Model/Models/CodeRepository";
import CodeRepository from "Model/Models/CopilotCodeRepository";
import Label from "Model/Models/Label";
import React, { Fragment, FunctionComponent, ReactElement } from "react";

Expand Down
8 changes: 4 additions & 4 deletions Dashboard/src/Pages/AICopilot/CodeRepository/View/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import SideMenu from "./SideMenu";
import ObjectID from "Common/Types/ObjectID";
import ModelPage from "CommonUI/src/Components/Page/ModelPage";
import Navigation from "CommonUI/src/Utils/Navigation";
import CodeRepository from "Model/Models/CodeRepository";
import CopilotCodeRepository from "Model/Models/CopilotCodeRepository";
import React, { FunctionComponent, ReactElement } from "react";
import { Outlet, useParams } from "react-router-dom";

const CodeRepositoryViewLayout: FunctionComponent<
const CopilotCodeRepositoryViewLayout: FunctionComponent<
PageComponentProps
> = (): ReactElement => {
const { id } = useParams();
Expand All @@ -18,7 +18,7 @@ const CodeRepositoryViewLayout: FunctionComponent<
return (
<ModelPage
title="Repository"
modelType={CodeRepository}
modelType={CopilotCodeRepository}
modelId={modelId}
modelNameField="name"
breadcrumbLinks={getCodeRepositoryBreadcrumbs(path)}
Expand All @@ -29,4 +29,4 @@ const CodeRepositoryViewLayout: FunctionComponent<
);
};

export default CodeRepositoryViewLayout;
export default CopilotCodeRepositoryViewLayout;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PageComponentProps from "../../../PageComponentProps";
import ObjectID from "Common/Types/ObjectID";
import ResetObjectID from "CommonUI/src/Components/ResetObjectID/ResetObjectID";
import Navigation from "CommonUI/src/Utils/Navigation";
import CodeRepository from "Model/Models/CodeRepository";
import CodeRepository from "Model/Models/CopilotCodeRepository";
import React, { Fragment, FunctionComponent, ReactElement } from "react";

const ServiceDelete: FunctionComponent<
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Pages/AICopilot/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Page from "CommonUI/src/Components/Page/Page";
import FieldType from "CommonUI/src/Components/Types/FieldType";
import DropdownUtil from "CommonUI/src/Utils/Dropdown";
import Navigation from "CommonUI/src/Utils/Navigation";
import CodeRepository from "Model/Models/CodeRepository";
import CodeRepository from "Model/Models/CopilotCodeRepository";
import Label from "Model/Models/Label";
import React, { FunctionComponent, ReactElement } from "react";
import URL from "Common/Types/API/URL";
Expand Down

0 comments on commit ad48ea5

Please sign in to comment.