|
15 | 15 | from aiogram_dialog.widgets.text import Const, Format |
16 | 16 | from aiogram_dialog.window import Window |
17 | 17 |
|
18 | | -from tgbot.dialogs.events.common.game.game import close_game_dialog |
19 | 18 | from tgbot.dialogs.events.common.game.inventory import ( |
20 | 19 | on_inventory_activation_comment_input, |
21 | 20 | on_inventory_cancel_activation, |
|
27 | 26 | from tgbot.dialogs.filters.user.game.inventory import inventory_filter_getter |
28 | 27 | from tgbot.dialogs.getters.common.game.inventory import inventory_detail_getter |
29 | 28 | from tgbot.dialogs.states.common.game import Game |
| 29 | +from tgbot.dialogs.widgets.buttons import HOME_BTN |
30 | 30 | from tgbot.misc.helpers import get_status_emoji |
31 | 31 |
|
32 | 32 | inventory_window = Window( |
|
67 | 67 | ), |
68 | 68 | Row( |
69 | 69 | SwitchTo(Const("↩️ Назад"), id="menu", state=Game.menu), |
70 | | - Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog), |
| 70 | + HOME_BTN, |
71 | 71 | ), |
72 | 72 | getter=inventory_filter_getter, |
73 | 73 | state=Game.inventory, |
|
113 | 113 | ), |
114 | 114 | Row( |
115 | 115 | SwitchTo(Const("↩️ Назад"), id="back_to_inventory", state=Game.inventory), |
116 | | - Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog), |
| 116 | + HOME_BTN, |
117 | 117 | ), |
118 | 118 | getter=inventory_detail_getter, |
119 | 119 | state=Game.inventory_details, |
|
150 | 150 | state=Game.products_success, |
151 | 151 | when="came_from_products", |
152 | 152 | ), |
153 | | - Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog), |
| 153 | + HOME_BTN, |
154 | 154 | ), |
155 | 155 | getter=inventory_detail_getter, |
156 | 156 | state=Game.inventory_activation_comment, |
|
0 commit comments