-
Notifications
You must be signed in to change notification settings - Fork 0
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
dan sutton
committed
Oct 24, 2018
1 parent
2480967
commit 1a76735
Showing
4 changed files
with
33 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
^{:extra-main-files {:devcards {:main react-hitch.devcards-runner} | ||
:test {:main react-hitch.test-runner}} | ||
:watch-dirs ["src" "test" "devcards"]} | ||
{:main react-hitch.qui-tracker} | ||
{:main react-hitch.qui-tracker | ||
:devcards true} |
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,29 @@ | ||
(ns react-hitch.card.wrapper | ||
(:require [devcards.core :as dc] | ||
[react-hitch.qui-tracker :as qui]) | ||
(:require-macros [devcards.core :refer [defcard]])) | ||
|
||
(def stuff 3) | ||
|
||
(defcard devcard-options-example-name | ||
"Devcard options documentation." | ||
(reify dc/IDevcardOptions | ||
(-devcard-options [_ opts] | ||
(assoc opts :main-obj opts))) ;; <-- alter :main-obj to be the passed in opts | ||
{:devcards-options-init-state true}) | ||
|
||
|
||
(defcard hi | ||
"hi" | ||
{} | ||
{} | ||
{}) | ||
|
||
(defonce state (atom {:initial "state"})) | ||
|
||
|
||
|
||
|
||
(defcard app-card | ||
"Example card" | ||
state) |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(ns react-hitch.devcards-runner | ||
(:require [devcards.core] | ||
)) | ||
[react-hitch.card.wrapper])) | ||
|
||
(devcards.core/start-devcard-ui!) | ||
|
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