forked from raycast/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update imdb extension (raycast#13413)
* Update imdb extension - fix: lint - docs: update changelog - feat: add action Open Parental Guide - Initial commit * fix: remove pnpm lock file * feat: add icon * fix: icon
- Loading branch information
1 parent
cdc6022
commit 928fa48
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
"contributors": [ | ||
"kgrhartlage", | ||
"bibixx", | ||
"dnsv" | ||
"dnsv", | ||
"AndersDigital" | ||
], | ||
"keywords": [ | ||
"imdb", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
extensions/imdb/src/components/actions/ActionOpenParentalGuide.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Action } from '@raycast/api'; | ||
import { Icon } from '@raycast/api'; | ||
|
||
type Props = { | ||
imdbID: string; | ||
}; | ||
|
||
const ActionOpenParentalGuide = ({ imdbID }: Props) => ( | ||
<Action.OpenInBrowser | ||
url={`https://www.imdb.com/title/${imdbID}/parentalguide`} | ||
title="Open Parental Guide" | ||
shortcut={{ modifiers: ['shift', 'cmd'], key: 'p' }} | ||
icon={Icon.SpeechBubbleImportant} | ||
/> | ||
); | ||
|
||
export default ActionOpenParentalGuide; |