@lendi-ui/scripts
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@lendi-ui/scripts

Scripts used among teams

Installation

yarn add @lendi-ui/scripts

Usage

// brand specific import
import { AUSSIE_IS_SCRIPTS } from '@lendi-ui/scripts';
// general import
import { IS_SCRIPTS } from '@lendi-ui/scripts';

const env = process.env.REACT_APP_ENVIRONMENT;
const brand = getBrandFromHostname();

// general document html
<head>
  {/*... other scripts*/}
  {AUSSIE_IS[env]}
  {/*... other scripts*/}
</head>;
// in some tsx outside document, you may wanna use Helmet
const Component = () => <Helmet>{IS_SCRIPTS[brand][env]}</Helmet>;

Table of contents

  • Interaction Studio Links: LENDI_IS_SCRIPTS | AUSSIE_IS_SCRIPTS | IS_SCRIPTS

Readme

Keywords

none

Package Sidebar

Install

npm i @lendi-ui/scripts

Weekly Downloads

113

Version

2.1.0

License

ISC

Unpacked Size

6.8 kB

Total Files

9

Last publish

Collaborators

  • devesh.maheshwari
  • joshua-derbe-lendi
  • michaelhuttonlendi
  • simon_lau_lendi
  • benjamintan
  • oliverfrance
  • kjartan.johansen
  • dapovey
  • nooshines
  • fernandogontijo_
  • sean-elliott-lendi
  • nghiato
  • sunny.niu
  • mfarshadmehr
  • jannes.mingram.lendi
  • antoine_lendi
  • bchiong
  • lendi-owner
  • andrealin
  • malkyfaith
  • brianduan
  • yihan_lu_lendi
  • nodemacross
  • samnevers
  • boris.gordon
  • leo.wei
  • bharadwajsampath
  • luissilvalendi
  • thomaslendi
  • dimitrioslendi
  • le-kang-lendi
  • yupeili