1.1.5 • Published 3 years ago

@experium/index-version-check v1.1.5

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Index version check

<VersionCheck />

    <VersionCheck>
        {({ needUpdate, update, close }) => needUpdate && (
            <div className='version-check-banner'>
                <CloseOutlined onClick={close} />
                Доступна новая версия - <a className='version-check-update' onClick={update}>обновить</a>
            </div>
        )}
    </VersionCheck>

Form components

Props

  • interval: minutes to recheck new version (default - 10)
  • indexRoute: get url for response check (default - 'index.html')

  • children: if no children - antd message will use instead

RenderProps

  • needUpdate
  • update
  • close

<Banner />

    <VersionCheck>
        { props => (
            <Banner {...props}  />
        )}
    </VersionCheck>

Default banner with styles and buttons

Props

  • message: text message for banner
  • messageUpdate: text message for update page link
  • closeIcon: icon component for render close
1.1.820

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago