@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

642

Version

2.1.0

License

ISC

Unpacked Size

6.8 kB

Total Files

9

Last publish

Collaborators

  • sauburylendi
  • jamie-conlon
  • van.tran.lendi
  • ishasaxena.aussie
  • mwlendi
  • devesh.maheshwari
  • joshua-derbe-lendi
  • michaelhuttonlendi
  • simon_lau_lendi
  • benjamintan
  • kjartan.johansen
  • nooshines
  • fernandogontijo_
  • nghiato
  • sunny.niu
  • jannes.mingram.lendi
  • antoine_lendi
  • bchiong
  • lendi-owner
  • andrealin
  • malkyfaith
  • brianduan
  • yihan_lu_lendi
  • nodemacross
  • samnevers
  • boris.gordon
  • bharadwajsampath
  • luissilvalendi
  • thomaslendi
  • dimitrioslendi
  • le-kang-lendi
  • yupeili