Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new appbar wc_simple_appbar.
- Loading branch information
Showing
6 changed files
with
105 additions
and
6 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
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
6 changes: 3 additions & 3 deletions
6
apps/phx_wc_storybook_web/lib/phx_wc_storybook_web/controllers/page_controller.ex
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,11 +1,11 @@ | ||
defmodule PhxWCStorybookWeb.PageController do | ||
use PhxWCStorybookWeb, :controller | ||
|
||
def index(conn, %{"p" => page} = _params) do | ||
render(conn, "index.html", page: String.to_integer(page)) | ||
def index(conn, %{"mode" => mode} = _params) do | ||
render(conn, "index.html", mode: mode) | ||
end | ||
|
||
def index(conn, _params) do | ||
render(conn, "index.html", page: 1) | ||
render(conn, "index.html", mode: "app") | ||
end | ||
end |
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