Skip to content

Commit

Permalink
feat(player): font style customization menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Jan 10, 2024
1 parent 9dadfc9 commit 4e902b6
Show file tree
Hide file tree
Showing 28 changed files with 1,318 additions and 466 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file.
- add media session api support ([da82b35](https://github.com/vidstack/player/commit/da82b35c68e24166ea2f6d619e8af18a51b1634f))
- new `storage` player prop and `MediaStorage` interface ([778ff6c](https://github.com/vidstack/player/commit/778ff6cfcef2a195934fa9d062b28b62007abf42))
- new view, stream, and remote type tailwind variants ([e15aefc](https://github.com/vidstack/player/commit/e15aefc88a71b3a097ad6d5f0bf08573ed1df455))
- font style customization menu ([15d1a44](https://github.com/vidstack/player/commit/15d1a44d2d63840121baef6b68c218a04d2a4a52))

#### Player (React)

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/layouts/default/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DefaultLayoutContext {
translations?: DefaultLayoutTranslations | null;
}

export function useDefaultLayoutLang(word: keyof DefaultLayoutTranslations) {
export function useDefaultLayoutLang(word: string) {
const { translations } = React.useContext(DefaultLayoutContext);
return i18n(translations, word);
}
Expand Down
Loading

0 comments on commit 4e902b6

Please sign in to comment.