aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/FocusUseCase.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/usecases/FocusUseCase.ts')
-rw-r--r--src/content/usecases/FocusUseCase.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/content/usecases/FocusUseCase.ts b/src/content/usecases/FocusUseCase.ts
index 0ad4021..0158672 100644
--- a/src/content/usecases/FocusUseCase.ts
+++ b/src/content/usecases/FocusUseCase.ts
@@ -1,13 +1,11 @@
-import FocusPresenter, { FocusPresenterImpl }
- from '../presenters/FocusPresenter';
+import { injectable, inject } from 'tsyringe';
+import FocusPresenter from '../presenters/FocusPresenter';
+@injectable()
export default class FocusUseCases {
- private presenter: FocusPresenter;
-
- constructor({
- presenter = new FocusPresenterImpl(),
- } = {}) {
- this.presenter = presenter;
+ constructor(
+ @inject('FocusPresenter') private presenter: FocusPresenter,
+ ) {
}
focusFirstInput() {