Skip to content

Commit

Permalink
WEB-1987 update size-stats sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Aug 29, 2024
1 parent 35eb5c6 commit 99e41ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/size-stats/app-test-lib-overhead/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import {createRoot} from 'react-dom/client';
import {ThemeContextProvider, IconTruckFilled, getMovistarSkin} from '@telefonica/mistica';
import {ThemeContextProvider, IconTruckFilled, getMovistarSkin, textTokens} from '@telefonica/mistica';

/*
Using React.createElement so we don't need to compile JSX
Expand All @@ -27,7 +27,10 @@ root.render(
i18n: {locale: 'es-ES', phoneNumberFormattingRegionCode: 'ES'},
},
},
React.createElement(IconTruckFilled, {})
React.createElement(IconTruckFilled, {
// adding a single text token to verify that a single token is included, not the whole dictionary
key: textTokens.formCreditCardCvvLabel.en,
})
)
)
);

0 comments on commit 99e41ca

Please sign in to comment.