Skip to content

Commit

Permalink
chore(deps): bump @lit-labs/react from 1.1.1 to 2.0.1 (#3652)
Browse files Browse the repository at this point in the history
* chore(deps): bump @lit-labs/react from 1.1.1 to 2.0.1

Bumps [@lit-labs/react](https://github.com/lit/lit/tree/HEAD/packages/labs/react) from 1.1.1 to 2.0.1.
- [Release notes](https://github.com/lit/lit/releases)
- [Changelog](https://github.com/lit/lit/blob/main/packages/labs/react/CHANGELOG.md)
- [Commits](https://github.com/lit/lit/commits/@lit-labs/react@2.0.1/packages/labs/react)

---
updated-dependencies:
- dependency-name: "@lit-labs/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor(RelativeTime): update to new createComponent usage

* test: update snapshots

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
Co-authored-by: Josh Black <joshblack@github.com>
  • Loading branch information
3 people authored Aug 29, 2023
1 parent be15e0e commit 440829c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
11 changes: 7 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@github/markdown-toolbar-element": "^2.1.0",
"@github/paste-markdown": "^1.4.0",
"@github/relative-time-element": "^4.1.2",
"@lit-labs/react": "^1.1.1",
"@lit-labs/react": "^2.0.1",
"@primer/behaviors": "^1.3.4",
"@primer/octicons-react": "^19.3.0",
"@primer/primitives": "^7.11.11",
Expand Down
8 changes: 7 additions & 1 deletion src/RelativeTime/RelativeTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import {createComponent} from '@lit-labs/react'
import {ComponentProps} from '../utils/types'
import sx from '../sx'

const RelativeTime = styled(createComponent(React, 'relative-time', RelativeTimeElement))(sx)
const RelativeTime = styled(
createComponent({
react: React,
tagName: 'relative-time',
elementClass: RelativeTimeElement,
}),
)(sx)

export type RelativeTimeProps = ComponentProps<typeof RelativeTime>
export default RelativeTime
1 change: 1 addition & 0 deletions src/__tests__/__snapshots__/RelativeTime.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
exports[`RelativeTime renders consistently 1`] = `
<relative-time
class=""
suppressHydrationWarning={true}
/>
`;

0 comments on commit 440829c

Please sign in to comment.