Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Migration from Disainipesa

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:

  1. Remove old dependency from package.json: @tehik/react-components
  2. Install TEDI component library npm i @tehik-ee/tedi-design-system
  3. 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)
  4. 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'
  5. Repeat the steps for every NPM project.

How to use TEDI components

  1. 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
  2. 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.
  3. 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.

Clone this wiki locally