Skip to content

Migrate button usage to Wildcard `<Button />` components

Created by: umpox

Button components: https://github.com/sourcegraph/sourcegraph/pull/23167

We should update the codebase to use Wildcard components instead of <button> and so on.

Notes:

  • Should be possible to use a codemod for this, to automate the change
  • We should add an eslint rule to ensure we continue to use the component, similar to the one we have for <form> elements
  • Also migrate usage of component <LoaderButton /> to <LoadingButton /> as per https://github.com/sourcegraph/sourcegraph/pull/23167