Commit Graph
5 Commits
Author SHA1 Message Date
cb642ce2e3 Upgrade to React 19 (#54460)
* update package.json

* codemod scoped-jsx

* refobject-defaults

* Fix some tests

* Lint

* Move import after license comment

* Fix test types for a wrapper of Button

I couldn't get it to work when destructuring rest props, e.g.:

    const { size, children, ...buttonProps } = props;

so for now I just removed it altogether. I don't know why it works
in ForwardedAsWrapper, I suppose it has to do either with the css prop
passed to ButtonPrimary? Or maybe the forwardedAs prop accepted by
ForwardedAsWrapper?

* revert most ReactElement<any>

* Fix tests

* Remove extra useEffect from useTable

* Pass null to useRef when dealing with DOM elements

* Bring back just `ReactElement` without `<any>` where possible

* Remove defaultProps

* pnpm dedupe

* revert test and fix stories

* Import JSX in StatusInfo.tsx

---------

Co-authored-by: Grzegorz Zdunek <grzegorz.zdunek@goteleport.com>
Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
Co-authored-by: Lisa Kim <lisa@goteleport.com>
2025-05-09 14:05:15 +00:00
Maxim Dietz db06505366 fix: Unexpected scrollbars in Firefox/Safari (#51983)
- Use `auto` overflow instead of explicit `scroll` to fix unexpected
  scrollbars in Firefox/Safari in TextSelectCopyMulti component
2025-02-12 21:36:34 +00:00
Ryan ClarkandRafał Cieślak d6fa030c0e Move import sorting over to prettier (#50618)
* Move import sorting over to prettier

* Update import order

* Re-run prettier

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2025-01-02 13:36:46 +00:00
Grzegorz Zdunek 941a99301e Remove unused React imports from packages/shared (#50207) 2024-12-13 15:12:14 +00:00
Grzegorz ZdunekandRafał Cieślak 402472698a Allow copying proxy link in app gateways (#38254)
* Move `TextSelectCopy` to design package

* Show only URL to app instead of curl example

* Move `TextSelectCopy` to `shared`

* Show loading spinner when `changePortAttempt` is processing

* Make the button revert to "Copy" after clicking

* Move Online DocumentGatewayApp story to be the first one

This way the happy path opens first when you open the relevant story section.

* Adjust the story to showcase the spinner

---------

Co-authored-by: Rafał Cieślak <rafal.cieslak@goteleport.com>
2024-02-16 13:50:20 +00:00