Skip to content

Commit

Permalink
Merge pull request amplication#28 from amplication/fix/teleportet-name
Browse files Browse the repository at this point in the history
Fix/teleportet name
  • Loading branch information
yuval-hazaz authored Feb 6, 2022
2 parents 5308ac6 + 325c9f5 commit 6a032f9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import BuildPage from "../VersionControl/BuildPage";
import RolesPage from "../Roles/RolesPage";

import PendingChangesPage from "../VersionControl/PendingChangesPage";
import { MenuFixedPanel } from "../util/teleporter";
import { AsidePanel } from "../util/teleporter";

import "./ApplicationLayout.scss";
import * as models from "../models";
Expand Down Expand Up @@ -222,7 +222,7 @@ function ApplicationLayout({ match }: Props) {
</div>
</MainLayout.Content>
<MainLayout.Aside>
<MenuFixedPanel.Target className="main-layout__aside__expandable" />
<AsidePanel.Target className="main-layout__aside__expandable" />
</MainLayout.Aside>

<ScreenResolutionMessage />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode, useCallback } from "react";
import classNames from "classnames";
import { Button, EnumButtonStyle } from "../Components/Button";
import { MenuFixedPanel } from "../util/teleporter";
import { AsidePanel } from "../util/teleporter";

import { Icon, Tooltip } from "@amplication/design-system";

Expand Down Expand Up @@ -61,7 +61,7 @@ const MenuItemWithFixedPanel = ({
</Tooltip>
)}
</div>
{isOpen && <MenuFixedPanel.Source>{children}</MenuFixedPanel.Source>}
{isOpen && <AsidePanel.Source>{children}</AsidePanel.Source>}
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useCallback, useContext, useState } from "react";
import classNames from "classnames";
import PendingChangesBar from "../VersionControl/PendingChangesBar";
import "./PendingChangesMenuItem.scss";
import { MenuFixedPanel } from "../util/teleporter";
import { AsidePanel } from "../util/teleporter";
import PendingChangesContext from "./PendingChangesContext";
import { Tooltip } from "@amplication/design-system";
import { Button, EnumButtonStyle } from "../Components/Button";
Expand Down Expand Up @@ -53,9 +53,9 @@ const PendingChangesMenuItem = ({ applicationId }: Props) => {
</Tooltip>
</div>
{panelOpen && (
<MenuFixedPanel.Source>
<AsidePanel.Source>
<PendingChangesBar applicationId={applicationId} />
</MenuFixedPanel.Source>
</AsidePanel.Source>
)}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/amplication-client/src/util/teleporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createTeleporter } from "react-teleporter";

export const HeaderToolbar = createTeleporter();
export const MenuFixedPanel = createTeleporter();
export const AsidePanel = createTeleporter();
3 changes: 2 additions & 1 deletion packages/amplication-server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import { GoogleSecretsManagerService } from 'src/services/googleSecretsManager.s
'..',
'amplication-client',
'build'
)
),
exclude: ['/graphql']
}),

RootWinstonModule,
Expand Down

0 comments on commit 6a032f9

Please sign in to comment.