@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

161

Version

2.1.0

License

ISC

Unpacked Size

6.8 kB

Total Files

9

Last publish

Collaborators

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