Skip to content

Commit

Permalink
resolve commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilad75 committed Jul 18, 2023
1 parent 5a6c108 commit b8bb5e4
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions src/status_im2/contexts/shell/activity_center/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,21 @@
:override-theme :dark})])
(rf/dispatch [:hide-bottom-sheet]))}]]]))

(defn empty-tab-description
[filter-type]
(case filter-type
types/no-type
(i18n/label :t/empty-notifications-all-tab)
types/admin
(i18n/label :t/empty-notifications-admin-tab)
types/mention
(i18n/label :t/empty-notifications-mentions-tab)
types/reply
(i18n/label :t/empty-notifications-replies-tab)
types/contact-request
(i18n/label :t/empty-notifications-contact-requests-tab)
types/contact-verification
(i18n/label :t/empty-notifications-identity-verification-tab)
types/tx
(i18n/label :t/empty-notifications-transactions-tab)
types/membership
(i18n/label :t/empty-notifications-membership-tab)
types/system
(i18n/label :t/empty-notifications-system-tab)
nil))
(def empty-tab-description
{types/no-type (i18n/label :t/empty-notifications-all-tab)
types/admin (i18n/label :t/empty-notifications-admin-tab)
types/mention (i18n/label :t/empty-notifications-mentions-tab)
types/reply (i18n/label :t/empty-notifications-replies-tab)
types/contact-request (i18n/label :t/empty-notifications-contact-requests-tab)
types/contact-verification (i18n/label :t/empty-notifications-identity-verification-tab)
types/tx (i18n/label :t/empty-notifications-transactions-tab)
types/membership (i18n/label :t/empty-notifications-membership-tab)
types/system (i18n/label :t/empty-notifications-system-tab)})

(defn empty-tab
[]
(let [filter-type (rf/sub [:activity-center/filter-type])
description (empty-tab-description filter-type)
description (get empty-tab-description filter-type nil)
filter-status (rf/sub [:activity-center/filter-status])]
[rn/view {:style style/empty-container}
[quo/empty-state
Expand Down

0 comments on commit b8bb5e4

Please sign in to comment.