Skip to content

Commit

Permalink
feat: add clickable hyperlink to URLParser (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre-3rd-Viking authored Jul 1, 2024
1 parent 24d56cf commit 31ea1e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/containers/URLParser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ const URLParser: React.FC<Props> = ({ inputText, storeInputText }) => {
onChange={(e) => storeInputText('lastUrlParserValue', e.target.value)}
/>

{inputText && (
<ul>
<li>
<a href={inputText} target='_blank' rel='noreferrer'>
Click the link to open the URL in a new tab
</a>
</li>
</ul>
)}

<TableContainer component={Paper} className={classes.panel}>
<Table size={isMdUp ? 'medium' : 'small'}>
<TableHead className={classes.tableHeader}>
Expand Down

0 comments on commit 31ea1e9

Please sign in to comment.