Skip to content

Commit

Permalink
chore: Prepare component stubs for app layout global drawers (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Sep 25, 2024
1 parent 65347c3 commit 583c698
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/app-layout/visual-refresh-toolbar/drawer/global-drawers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React from 'react';

import { createWidgetizedComponent } from '../../../internal/widgets';

/* istanbul ignore next: noop stub */
export function AppLayoutGlobalDrawersImplementation() {
return <></>;
}

export const createWidgetizedAppLayoutGlobalDrawers = createWidgetizedComponent(AppLayoutGlobalDrawersImplementation);
5 changes: 5 additions & 0 deletions src/app-layout/visual-refresh-toolbar/drawer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export { createWidgetizedAppLayoutDrawer, AppLayoutDrawerImplementation } from './local-drawer';
export { createWidgetizedAppLayoutGlobalDrawers, AppLayoutGlobalDrawersImplementation } from './global-drawers';
5 changes: 4 additions & 1 deletion src/app-layout/visual-refresh-toolbar/exports.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export { AppLayoutDrawerImplementation as AppLayoutDrawer } from './drawer';
export {
AppLayoutDrawerImplementation as AppLayoutDrawer,
AppLayoutGlobalDrawersImplementation as AppLayoutGlobalDrawers,
} from './drawer';
export { AppLayoutNavigationImplementation as AppLayoutNavigation } from './navigation';
export { AppLayoutNotificationsImplementation as AppLayoutNotifications } from './notifications';
export {
Expand Down
3 changes: 2 additions & 1 deletion src/app-layout/visual-refresh-toolbar/internal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { createWidgetizedAppLayoutDrawer } from './drawer';
import { createWidgetizedAppLayoutDrawer, createWidgetizedAppLayoutGlobalDrawers } from './drawer';
import { createWidgetizedAppLayoutNavigation } from './navigation';
import { createWidgetizedAppLayoutNotifications } from './notifications';
import {
Expand All @@ -11,6 +11,7 @@ import { createWidgetizedAppLayoutToolbar } from './toolbar';

export const AppLayoutNavigation = createWidgetizedAppLayoutNavigation();
export const AppLayoutDrawer = createWidgetizedAppLayoutDrawer();
export const AppLayoutGlobalDrawers = createWidgetizedAppLayoutGlobalDrawers();
export const AppLayoutNotifications = createWidgetizedAppLayoutNotifications();
export const AppLayoutToolbar = createWidgetizedAppLayoutToolbar();
export const AppLayoutSplitPanelBottom = createWidgetizedAppLayoutSplitPanelDrawerBottom();
Expand Down

0 comments on commit 583c698

Please sign in to comment.