module Organisations
  class WhatWeDoPresenter
    attr_reader :org

    def initialize(organisation)
      @org = organisation
    end

    def has_share_links?
      org.social_media_links.present?
    end

    def share_links
      links = []

      org.social_media_links.each do |link|
        links << {
          href: link["href"],
          text: link["title"],
          icon: link["service_type"],
        }
      end

      {
        stacked: true,
        brand: org.brand,
        links: links,
      }
    end
  end
end

module Organisations
  class WhatWeDoPresenter
    attr_reader :org

    def initialize(organisation)
      @org = organisation
    end

    def has_share_links?
      org.social_media_links.present?
    end

    def share_links
      links = []

      org.social_media_links.each do |link|
        links << {
          href: link["href"],
          text: link["title"],
          hidden_text: "Follow on",
          icon: link["service_type"],
        }
      end

      {
        stacked: true,
        brand: org.brand,
        links: links,
      }
    end
  end
end

Update visually hidden text to share links
Update visually hidden text to share links

The default hidden text is "Share on" which is good in most cases but
on government organisation pages the component is used as social links,
so that text doesn't make sense.

This updates it to "Follow on"
