You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tõnis Tobre edited this page May 6, 2024
·
11 revisions
Project migration
Project, that uses old react-components lib you need to follow these steps:
Remove old dependency from package.json: @tehik/react-components
Install TEDI component library npm i @tehik-ee/tedi-design-system
Find and replace from all files in project: from '@tehik/react-components' and replace from '@tehik-ee/tedi-design-system/community' (from is important to replace only import statements)
In addition you need to change style location as well: import '@tehik/react-components/index.css' and replace import '@tehik-ee/tedi-design-system/index.css'
Repeat the steps for every NPM project.
How to use TEDI components
When adding new features to your project, first thing is to see Storybook if TEDI provides required component. If yes, then you should use it. TEDI components in storybook is located under TEDI-COMPONENTS section. https://tehik-ee.github.io/tedi-design-system/main
If TEDI doesn't provide component, then developer should see if the community provides it. Community components are located in Storybook under COMMUNITY-COMPONETS Section.
If nether sections doesn't have required component, then you can always as in Slack and probably have to create the component on your own.
TEDI team continuously adds new components. Majority of them will be converted from community components. You should refactor your project to reflect latest changes in the component lib.