sharethis-github / sharethis-reactjs

Official ShareThis Social Media Sharing Buttons For React.js
Universal Permissive License v1.0
37 stars 9 forks source link

Your demo seems to be broken + I cannot seem to make Sticky buttons to appear #27

Open OdifYltsaeb opened 3 years ago

OdifYltsaeb commented 3 years ago

When I open the demo, then I only see 3 headlines and no share buttons.

When I Add

    <div>
        <StickyShareButtons
            config={{
                alignment: 'left', // alignment of buttons (left, right)
                color: 'social', // set the color of buttons (social, white)
                enabled: true, // show/hide buttons (true, false)
                font_size: 16, // font size for the buttons
                hide_desktop: false, // hide buttons on desktop (true, false)
                labels: 'counts', // button labels (cta, counts, null)
                language: 'en', // which language to use (see LANGUAGES)
                min_count: 0, // hide react counts less than min_count (INTEGER)
                networks: [
                    // which networks to include (see SHARING NETWORKS)
                    'linkedin',
                    'facebook',
                    'twitter',
                ],
                padding: 12, // padding within buttons (INTEGER)
                radius: 4, // the corner radius on each button (INTEGER)
                show_total: true, // show/hide the total share count (true, false)
                show_mobile: true, // show/hide the buttons on mobile (true, false)
                show_toggle: true, // show/hide the toggle buttons (true, false)
                size: 48, // the size of each button (INTEGER)
                top: 160, // offset in pixels from the top of the page
            }}
        />
    </div>

to my site, then I can see from react debug tools, that the component is rendered, but no visible buttons are there.

Alan

long-sharethis commented 3 years ago

Hey Alan,

So I have created a new demo with sandbox, seems like everything working as expected. Can you double check with this demo here to see what makes your share button hidden. https://codesandbox.io/s/eloquent-platform-0l4f0?file=/src/App.js

Best Long