Skip to content

Commit

Permalink
fix link/url text display>relates to #138
Browse files Browse the repository at this point in the history
  • Loading branch information
sunuwars committed Dec 3, 2018
1 parent 85cd6ea commit 7665d67
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ typings/
# dotenv environment variables file
*.env

# sass cache

/.sass-cache
.sass-cache

# public folder with user login downloaded files
src/public

5 changes: 4 additions & 1 deletion client/src/components/AddComponents/VideoInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

export default class VideoInput extends React.Component {
render() {
const { content } = this.props;
const { content, answers } = this.props;
return (
<fieldset className="video-add">
<label htmlFor={content.id}>
Expand All @@ -16,6 +16,9 @@ export default class VideoInput extends React.Component {
type="text"
pattern="(?:https?:\/\/)?(?:youtu\.be\/|(?:www\.|m\.)?youtube\.com\/(?:watch|v|embed)(?:\.php)?(?:\?.*v=|\/))([a-zA-Z0-9\-_]+)"
/>
<p>
Current Link: {answers[content.id] ? answers[content.id] : "None"}
</p>
</fieldset>
);
}
Expand Down

0 comments on commit 7665d67

Please sign in to comment.