diff --git a/changelog/34699.txt b/changelog/34699.txt new file mode 100644 index 0000000000..878252ecec --- /dev/null +++ b/changelog/34699.txt @@ -0,0 +1,3 @@ +```release-note:change +ui: Removed `FormError` component (not used) +``` diff --git a/ui/lib/core/addon/components/form-error.hbs b/ui/lib/core/addon/components/form-error.hbs deleted file mode 100644 index 006661884a..0000000000 --- a/ui/lib/core/addon/components/form-error.hbs +++ /dev/null @@ -1,13 +0,0 @@ -{{! - Copyright (c) HashiCorp, Inc. - SPDX-License-Identifier: BUSL-1.1 -}} - -
-
- -
-
- {{yield}} -
-
\ No newline at end of file diff --git a/ui/lib/core/app/components/form-error.js b/ui/lib/core/app/components/form-error.js deleted file mode 100644 index 0b4818dc0e..0000000000 --- a/ui/lib/core/app/components/form-error.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -export { default } from 'core/components/form-error'; diff --git a/ui/tests/integration/components/form-error-test.js b/ui/tests/integration/components/form-error-test.js deleted file mode 100644 index 69046aeab7..0000000000 --- a/ui/tests/integration/components/form-error-test.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: BUSL-1.1 - */ - -import { module, test } from 'qunit'; -import { setupRenderingTest } from 'ember-qunit'; -import { render } from '@ember/test-helpers'; -import hbs from 'htmlbars-inline-precompile'; - -module('Integration | Component | form-error', function (hooks) { - setupRenderingTest(hooks); - - test('it renders', async function (assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); - - await render(hbs`{{form-error}}`); - - assert.dom(this.element).hasText(''); - - // Template block usage: - await render(hbs` - - template block text - - `); - - assert.dom(this.element).hasText('template block text'); - }); -});