Skip to content

Commit

Permalink
Fix some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
fidr committed Oct 29, 2019
1 parent c9e9c82 commit e943e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Then add to your `assets/package.json` and run `npm i` or `yarn`:
}
```

Note for umbrella projects the relative file paths should look like `"file:../../../deps/phoenix_live_react"`
Note for umbrella projects the relative file paths should look like `"file:../../../deps/phoenix_live_react"`

## Usage

Expand Down
6 changes: 3 additions & 3 deletions lib/phoenix_live_react.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule PhoenixLiveReact do
You can also override the tag type with the `:container_tag` and `:receiver_tag` options
By default, LiveView uses `phx-` as the binding prefix. You can override this with the
`:binding_prefix` option.
`:binding_prefix` option.
```
<%=
Expand All @@ -59,7 +59,7 @@ defmodule PhoenixLiveReact do
defp receiver_element(name, props, options) do
attr = Keyword.get(options, :receiver, [])
tag = Keyword.get(options, :receiver_tag, :div)
binding_prefix = Keyword.get(options, :binding_prefix, "phx-")
binding_prefix = Keyword.get(options, :binding_prefix, "phx-")

default_attr = [
style: "display: none;",
Expand All @@ -76,7 +76,7 @@ defmodule PhoenixLiveReact do
defp container_element(options) do
attr = Keyword.get(options, :container, [])
tag = Keyword.get(options, :container_tag, :div)
binding_prefix = Keyword.get(options, :binding_prefix, "phx-")
binding_prefix = Keyword.get(options, :binding_prefix, "phx-")

default_attr = ["#{binding_prefix}update": "ignore"]

Expand Down

0 comments on commit e943e9b

Please sign in to comment.