Skip to content

Commit

Permalink
fix messages about properties not being defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Stauer committed Mar 18, 2024
1 parent 21bde43 commit ae3a82a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/partials/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ const Component = (props) => {
<h5 className="component-card-title">
<b>{errorCountTotal > 0 ? errorCountTotal : 'OK'}</b>
{errorCountTotal > 0 &&
<a href={selectedComponent.preview_link} target="_blank" rel="noreferrer" aria-label="view errors"><svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#fa2c2c" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg></a>
<a href={selectedComponent.preview_link} target="_blank" rel="noreferrer" aria-label="view errors"><svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#fa2c2c" strokeWidth="2.5" strokeLinecap="square" strokeLinejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg></a>
}
</h5>

<div className="component-card-footer d-flex flex-column">
{selectedComponent.preview_link && selectedComponent.preview_link.length > 0 &&
<a href={selectedComponent.preview_link} target="_blank" rel="noreferrer" aria-label="open component example">Preview <svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="round"><g fill="none" fill-rule="evenodd"><path d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"/></g></svg></a>
<a href={selectedComponent.preview_link} target="_blank" rel="noreferrer" aria-label="open component example">Preview <svg xmlns="http://www.w3.org/2000/svg" width="33" height="33" viewBox="0 0 24 24" fill="none" stroke="#000" strokeWidth="2.5" strokeLinecap="square" strokeLinejoin="round"><g fill="none" fillRule="evenodd"><path d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"/></g></svg></a>
}

{ framework && !component && errorCountTotal > 0 &&
Expand Down
2 changes: 1 addition & 1 deletion src/partials/framework-overview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const FrameworkOverview = () => {
<div className="container">
<div className="mb-4">
<Link to={`/`}>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="square" stroke-linejoin="round"><path d="M19 12H6M12 5l-7 7 7 7"/></svg> Back
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000" strokeWidth="2" strokeLinecap="square" strokeLinejoin="round"><path d="M19 12H6M12 5l-7 7 7 7"/></svg> Back
</Link>
</div>
<h2>Frameworks Component Issues Overview</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/single-framework.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const SingleFramework = (props) => {
<div className="col-12 my-5">
<div className="mb-4">
<Link to={`/${component ? framework : ''}`}>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="square" stroke-linejoin="round"><path d="M19 12H6M12 5l-7 7 7 7"/></svg> Back
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000" strokeWidth="2" strokeLinecap="square" strokeLinejoin="round"><path d="M19 12H6M12 5l-7 7 7 7"/></svg> Back
</Link>
</div>
<h2>{selectedFramework.name}</h2>
Expand Down

0 comments on commit ae3a82a

Please sign in to comment.