Skip to content

Commit

Permalink
Convert Shw::Outliner component to GTS (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamoore authored Sep 20, 2024
1 parent 26a4cdc commit 0baddca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
20 changes: 20 additions & 0 deletions showcase/app/components/shw/outliner/index.gts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';

export interface ShwOutlinerSignature {
Blocks: {
default: [];
};
Element: HTMLDivElement;
}

export default class ShwOutliner extends Component<ShwOutlinerSignature> {
<template>
<div class="shw-outliner" ...attributes>
{{yield}}
</div>
</template>
}
8 changes: 0 additions & 8 deletions showcase/app/components/shw/outliner/index.hbs

This file was deleted.

17 changes: 0 additions & 17 deletions showcase/app/components/shw/outliner/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion showcase/types/template-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import ShwGrid from '../app/components/shw/grid';
import ShwGridItem from '../app/components/shw/grid/item';
import ShwLabel from '../app/components/shw/label';
import ShwLogoDesignSystem from '../app/components/shw/logo/design-system';
import ShwOutliner from '../app/components/shw/outliner';
import ShwOutliner from '../app/components/shw/outliner/index';
import ShwPlaceholder from '../app/components/shw/placeholder/index';
import ShwText from '../app/components/shw/text/index';
import ShwTextBody from '../app/components/shw/text/body';
Expand Down

0 comments on commit 0baddca

Please sign in to comment.