Skip to content

Commit 01c262b

Browse files
committed
fix: Исправление импорта
1 parent 29b11d6 commit 01c262b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tgbot/dialogs/menus/common/game/inventory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from aiogram_dialog.widgets.text import Const, Format
1616
from aiogram_dialog.window import Window
1717

18-
from tgbot.dialogs.events.common.game.game import close_game_dialog
1918
from tgbot.dialogs.events.common.game.inventory import (
2019
on_inventory_activation_comment_input,
2120
on_inventory_cancel_activation,
@@ -27,6 +26,7 @@
2726
from tgbot.dialogs.filters.user.game.inventory import inventory_filter_getter
2827
from tgbot.dialogs.getters.common.game.inventory import inventory_detail_getter
2928
from tgbot.dialogs.states.common.game import Game
29+
from tgbot.dialogs.widgets.buttons import HOME_BTN
3030
from tgbot.misc.helpers import get_status_emoji
3131

3232
inventory_window = Window(
@@ -67,7 +67,7 @@
6767
),
6868
Row(
6969
SwitchTo(Const("↩️ Назад"), id="menu", state=Game.menu),
70-
Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog),
70+
HOME_BTN,
7171
),
7272
getter=inventory_filter_getter,
7373
state=Game.inventory,
@@ -113,7 +113,7 @@
113113
),
114114
Row(
115115
SwitchTo(Const("↩️ Назад"), id="back_to_inventory", state=Game.inventory),
116-
Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog),
116+
HOME_BTN,
117117
),
118118
getter=inventory_detail_getter,
119119
state=Game.inventory_details,
@@ -150,7 +150,7 @@
150150
state=Game.products_success,
151151
when="came_from_products",
152152
),
153-
Button(Const("🏠 Домой"), id="home", on_click=close_game_dialog),
153+
HOME_BTN,
154154
),
155155
getter=inventory_detail_getter,
156156
state=Game.inventory_activation_comment,

0 commit comments

Comments
 (0)