mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
* create new components for query side panel * add reusable icon component that uses svg for icons * integrate with new osquery_fleet_schema.json data * update UI to work with osquery_fleet_schema.json * add remark-gfm to safely support direct urls in markdown * move fleet ace into markdown component so we can render code with ace editor * add testing for new query sidebar * remove incomplete tests for query sidepanel
23 lines
463 B
TypeScript
23 lines
463 B
TypeScript
import React from "react";
|
|
|
|
import FleetMarkdown from "components/FleetMarkdown";
|
|
|
|
interface IQueryTableNotesProps {
|
|
notes: string;
|
|
}
|
|
|
|
const baseClass = "query-table-notes";
|
|
|
|
const QueryTableNotes = ({ notes }: IQueryTableNotesProps) => {
|
|
return (
|
|
<div className={baseClass}>
|
|
<h3>Notes</h3>
|
|
<FleetMarkdown
|
|
markdown={notes}
|
|
className={`${baseClass}__notes-markdown`}
|
|
/>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default QueryTableNotes;
|