From e943e9b9070fae1785c896532286dc085b047abe Mon Sep 17 00:00:00 2001 From: Robin Fidder Date: Tue, 29 Oct 2019 10:25:49 +0100 Subject: [PATCH] Fix some whitespace --- README.md | 2 +- lib/phoenix_live_react.ex | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9d58991..ec0ab65 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/phoenix_live_react.ex b/lib/phoenix_live_react.ex index 90be44c..6591da6 100644 --- a/lib/phoenix_live_react.ex +++ b/lib/phoenix_live_react.ex @@ -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. ``` <%= @@ -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;", @@ -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"]