Renaming a component

There may come a point when you need to rename a component. In that case, please follow the below steps:

  1. Rename file knapsack.pattern.OLD_ID.json to knapsack.pattern.NEW_ID.json
  2. Open that file and change "id": "OLD_ID" to "id": "NEW_ID"
  3. Open knapsack.navs.json and search and replace the OLD_ID to NEW_ID
  4. In case the pattern was used inside another pattern's slot, search for "patternId": "OLD_ID" across all knapsack.pattern.*.json files. You can see an example of how it would appear below where the "jumbotron" pattern uses "button" in a slot (so if OLD_ID was "button" then you'd change it here).