Skip to content

Commit

Permalink
Add TypeScript types to the xTile family of components #13536 (#13631)
Browse files Browse the repository at this point in the history
* feat(ExpandableTile): rename to tsx #13536

* feat(ExpandableTile): add types #13536

* fix(Tile): remove invalid attr; suppress false lint error #13536

* chore(Tile): address code review comments

* chore(Tile): address review comments & errors

---------

Co-authored-by: Francine Lucca <[email protected]>
  • Loading branch information
kubijo and francinelucca authored Jun 16, 2023
1 parent ab30e22 commit fbdc9b5
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 129 deletions.
9 changes: 0 additions & 9 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3106,15 +3106,6 @@ Map {
},
"ExpandableTile" => Object {
"$$typeof": Symbol(react.forward_ref),
"defaultProps": Object {
"expanded": false,
"onClick": [Function],
"tabIndex": 0,
"tileCollapsedIconText": "Interact to expand Tile",
"tileExpandedIconText": "Interact to collapse Tile",
"tileMaxHeight": 0,
"tilePadding": 0,
},
"propTypes": Object {
"children": Object {
"type": "node",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import React, {
} from 'react';
import { usePrefix } from '../../internal/usePrefix';

interface LinkProps {
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
/**
* @description Indicates the element that represents the
* current item within a container or set of related
Expand Down
Loading

0 comments on commit fbdc9b5

Please sign in to comment.