Reuseable Typescript React Components
npm install @times-components/ts-componentsThis package contains components written in a Typescript. This will allow for
easy migration when we need to move these to a more modern repository.
title prop to enable a bespoke status.The original article flags are styled with a circular bullet in front of the title, coloured text and no background colour. They include the "new", "updated", "exclusive", "sponsored" and "long read" flags. The "live news" flags, which include "live" and "breaking", are styled to have a diamond icon in front of the title and white text on a coloured background.
The flags are currently added to an article by an editor using the CMS. These
flags "expire" server side.
All the build steps have been updated to handle all the build steps:
1. yarn transpile will build javascript into the /dist directory
1. yarn lint will perform tslint and prettier tasks
1. yarn bundle will generate the rnw.js bundle
For now, you will need to do a yarn build for storybook to update, or you could run yarn watch:build to update storybook on save.