Skip to content

Commit

Permalink
Update component.hbs
Browse files Browse the repository at this point in the history
  • Loading branch information
6km committed Apr 19, 2022
1 parent 9f0c609 commit 4bef5b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plop-templates/component.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import { getPlayById } from 'meta/play-meta-util';

import PlayHeader from 'common/playlists/PlayHeader';

function {{pascalCase name}}() {
function {{pascalCase name}}(props) {
// Do not remove the below lines.
// The following code is to fetch the current play from the URL
const location = useLocation();
const { id } = location.state;
const { id } = props;
const play = getPlayById(id);

// Your Code Start below.
Expand Down

0 comments on commit 4bef5b4

Please sign in to comment.