This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function initGTM(containerId) { | |
| const dataLayerName = 'dataLayer'; | |
| window[dataLayerName] = window[dataLayerName] || []; | |
| window[dataLayerName].push({'gtm.start': new Date().getTime(), event: 'gtm.js'}); | |
| const firstScriptTag = document.getElementsByTagName('script')[0]; | |
| const newScriptTag = document.createElement('script'); | |
| const dataLayerParam = dataLayerName !== 'dataLayer' ? '&l=' + dataLayerName : ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // If getTypeNames was a function that connected to some API, you could map over each typename | |
| // and return that. | |
| function getTypeNames(): ['Wallet', 'BankAccount'] { | |
| return ['Wallet', 'BankAccount']; | |
| } | |
| export const App = () => { | |
| return ( | |
| <> | |
| {getTypeNames().map((name) => ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // index.ts | |
| export * from './stepper'; | |
| export * from './stepper-context'; | |
| export * from './stepper.types'; | |
| export * from './use-stepper'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"v":"5.7.4","fr":30,"ip":0,"op":35,"w":800,"h":800,"nm":"Construction","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[90]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[180]},{"i":{"x":[0.828],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":42,"s":[180]},{"t":74,"s":[90]}],"ix":10},"p":{"a":0,"k":[417.614,473,0],"ix":2,"l":2},"a":{"a":0,"k":[-29.5,1.69,0],"ix":1,"l":2},"s":{"a":0,"k":[-203,203,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.005,-46.691],[0,-0.007],[0,0]],"o":[[-46.69,-0.006],[0,0.006],[0,0],[0,0]],"v":[[55.05,-83.05],[-29.5,1.481],[-29.5,1.5],[55.05,1.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.913725490196,0.901960784314,0.109803921569,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm" |