-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
776 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
(ns status-im.ui.components.toolbar-big.actions | ||
(:require [re-frame.core :as re-frame] | ||
[status-im.ui.components.toolbar-big.styles :as styles])) | ||
|
||
(defn add [illuminated? handler] | ||
{:icon :main-icons/add | ||
:icon-opts (if illuminated? styles/icon-add-illuminated styles/icon-add) | ||
:handler handler}) | ||
|
||
(defn opts [options] | ||
{:icon :main-icons/more | ||
:options options}) | ||
|
||
(defn back [handler] | ||
{:icon :main-icons/back | ||
:handler handler | ||
:accessibility-label :back-button}) | ||
|
||
(def default-handler #(re-frame/dispatch [:navigate-back])) | ||
|
||
(def home-handler #(re-frame/dispatch [:navigate-to :home])) | ||
|
||
(def default-back | ||
(back default-handler)) | ||
|
||
(def home-back | ||
(back home-handler)) | ||
|
||
(defn back-white [handler] | ||
{:icon :main-icons/back | ||
:icon-opts {:color :white} | ||
:handler handler | ||
:accessibility-label :back-button}) | ||
|
||
(defn close [handler] | ||
{:icon :main-icons/close | ||
:handler handler | ||
:accessibility-label :done-button}) | ||
|
||
(def default-close | ||
(close default-handler)) | ||
|
||
(defn close-white [handler] | ||
{:icon :main-icons/close | ||
:icon-opts {:color :white} | ||
:handler handler}) | ||
|
||
(defn list-white [handler] | ||
{:icon :main-icons/two-arrows | ||
:icon-opts {:color :white} | ||
:handler handler}) |
Oops, something went wrong.