Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function RepoListItem({goal, stars}) {
return (
<p>{goal.title}</p>
{stars && (
<p>{stars}</p>
)}
<label>TBD</label>
<img src="{chevronRight}" alt="pointing right icon">
);
}
export default RepoListItem;
export const NoteCard = () => (
<textarea name="notes" for="" placeholder="{`Type" type="text" value="{""}" style="{{minHeight:"> <FlexCenter>
<Button onClick={() => console.log("clicked")}>
<Octicon verticalAlign="middle" icon={getIconByName("pencil")} />
Edit Notes
</Button>
<Button primary onClick={() => console.log("clicked")}>
Delete
</Button>
</FlexCenter>
</Card>
);
</textarea>
onChange={_handleNotesChange}
value={noteContent || ""}
type="text"
placeholder={`Type your notes for ${repoName} here...`}
name="notes"
aria-label="note input"
/>
{editing ? (
<button>
Save Notes
</button>
) : (
<button>
Edit Notes
</button>
)}
<button>
{" "}
Delete
</button>
);
}
to={{
pathname: `/repos/${goal.title}/${goal.number}`,
}}>
{goal.title}
<p>{goal.description}</p>
{goal.labels &&
goal.labels.nodes.map(label => (
<label>
{label.name}
</label>
))}
<span>
{stars}
</span>
<span>
{contributors}
</span>
);
}
export default Card;
<p>{goal.description}</p>
{goal.labels &&
goal.labels.nodes.map(label => (
<label>
{label.name}
</label>
))}
<span>
{stars}
</span>
<span>
{contributors}
</span>
);
}
export default Card;
childStrings.forEach((val, key) => {
if (!(typeof val === 'string') && LabelIcon.is(val)) {
const octicon = getIconByName(val.name);
if (octicon) {
children.push(<span></span>);
} else {
children.push(<span></span>);
}
} else {
children.push(<span>{val}</span>);
}
});
const elementInnerDiv = {children};
)
}
CircleOcticon.defaultProps = {
theme,
...Flex.defaultProps,
size: 32
}
CircleOcticon.propTypes = {
...Flex.propTypes,
icon: Octicon.propTypes.icon,
size: PropTypes.number,
theme: PropTypes.object
}
export default CircleOcticon