feat(web): add accepting subscription invites from UI
This commit is contained in:
12
packages/ui-services/src/Toast/ToastService.ts
Normal file
12
packages/ui-services/src/Toast/ToastService.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { addToast, ToastType } from '@standardnotes/toast'
|
||||
|
||||
import { ToastServiceInterface } from './ToastServiceInterface'
|
||||
|
||||
export class ToastService implements ToastServiceInterface {
|
||||
showToast(type: ToastType, message: string): void {
|
||||
addToast({
|
||||
type: type,
|
||||
message,
|
||||
})
|
||||
}
|
||||
}
|
||||
5
packages/ui-services/src/Toast/ToastServiceInterface.ts
Normal file
5
packages/ui-services/src/Toast/ToastServiceInterface.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ToastType } from '@standardnotes/toast'
|
||||
|
||||
export interface ToastServiceInterface {
|
||||
showToast(type: ToastType, message: string): void
|
||||
}
|
||||
Reference in New Issue
Block a user