cityofaustin/janis

Update Internationalized Link Components

Closed this issue · 0 comments

Currently the I18nLink and I18nNavLink are receiving and passing through more props than a Link and NavLink component expect respectively. This is causing the extra props to be added as attributes on the final rendered anchor tags and some warnings to be thrown in console.

screen shot 2018-03-05 at 11 48 26 am

We need to update both I18nLink and I18nNavLink components to only pass through expected props. Consider using https://lodash.com/docs/4.17.5#pick or https://stackoverflow.com/questions/17781472/how-to-get-a-subset-of-a-javascript-objects-properties