Skip to content

Commit

Permalink
feat: Enhance Schema Error Visualization with New Icons (#855)
Browse files Browse the repository at this point in the history
Optimized Editor Lifecycle methods and removed the 'janky' Alert that
would insert itself between the developer tools and Editor component in
favor of a small icon that is in the fileswitcher.
  • Loading branch information
Kevin101Zhang committed Jul 10, 2024
1 parent 889fba0 commit 1318cb6
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 260 deletions.
10 changes: 10 additions & 0 deletions frontend/src/components/Common/Icons/AlertSquareIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';

const AlertSquareIcon = () => {
return (
<div className={`ml-2 w-4 h-4 inline-flex justify-center items-center bg-red-700 text-white rounded`}>
<span className="text-xs">!</span>
</div>
);
};
export default AlertSquareIcon;
17 changes: 17 additions & 0 deletions frontend/src/components/Common/Icons/CheckMarkSquareIcon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';

const CheckMarkSquareIcon = () => {
return (
<div className={`ml-2 w-4 h-4 inline-flex justify-center items-center bg-green-500 text-white rounded`}>
<svg xmlns="http://www.w3.org/2000/svg" className="h-2 w-2" viewBox="0 0 20 20" fill="currentColor">
<path
fillRule="evenodd"
d="M19.707 3.293a1 1 0 0 1 0 1.414l-12 12a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 1.414-1.414L8 14.586l11.293-11.293a1 1 0 0 1 1.414 0z"
clipRule="evenodd"
/>
</svg>
</div>
);
};

export default CheckMarkSquareIcon;
Loading

0 comments on commit 1318cb6

Please sign in to comment.