react-google-places-autocomplete icon indicating copy to clipboard operation
react-google-places-autocomplete copied to clipboard

how to do powered by google?

Open nyousefzai opened this issue 4 years ago • 4 comments

How we can activate powered by google, is this option been build yet? It required by google to have this option. https://developers.google.com/places/web-service/policies#powered

nyousefzai avatar Feb 16 '21 22:02 nyousefzai

@nyousefzai No, it's not possible right now, but they provide you with the image, so you can add it yourself in the meantime.

A PR adding this feature is welcomed.

Tintef avatar Feb 17 '21 02:02 Tintef

sure as soon as I get a chance, at the main time here is little work around might be useful for someone else.

import { components } from "react-select";
const Menu = (props: any) => {
  return (
    <>
      <components.Menu {...props}>
        {props.children}
        <div>img tag</div>
      </components.Menu>
    </>
  );
};
 <GooglePlacesAutocomplete
          selectProps={{
            components: {
              Menu,
            },
          }}
        />
        ```

nyousefzai avatar Feb 17 '21 17:02 nyousefzai

Hi @Tintef, is this issue still open? Can I pick this up?

farrukhrashid1997 avatar Jun 18 '22 07:06 farrukhrashid1997

@farrukhrashid1997 Yeah, feel free to open a PR

Tintef avatar Jun 18 '22 15:06 Tintef