Skip to content

Commit

Permalink
use other name
Browse files Browse the repository at this point in the history
  • Loading branch information
serikshaikamalov committed Jul 18, 2024
1 parent 2e32b29 commit 57ab7b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/snack/snack-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { html, css, LitElement } from "https://cdn.jsdelivr.net/npm/lit@2/+esm";
* - Fixed long text issue
*/
export function snack(message, { duration = 3000 } = {}) {
let snack = document.createElement('snack-bar')
let snack = document.createElement('app-snackbar')
snack.message = message
snack.duration = duration
document.body.appendChild(snack)
snack.show()
}

class SnackBar extends LitElement {
class AppSnackBar extends LitElement {
static styles = css`
#snackbar {
min-width: 250px;
Expand Down Expand Up @@ -76,4 +76,4 @@ class SnackBar extends LitElement {
}
}

customElements.define('snack-bar', SnackBar)
customElements.define('app-snackbar', AppSnackBar)

0 comments on commit 57ab7b9

Please sign in to comment.