* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
-import { collapsePath } from 'sonar-ui-common/helpers/path';
interface Props {
path: string;
}
-export default function ConciseIssueComponent(props: Props) {
+export default function ConciseIssueComponent({ path }: Props) {
return (
- <div className="concise-issue-component note text-ellipsis">{collapsePath(props.path, 20)}</div>
+ <div className="concise-issue-component text-ellipsis note" title={path}>
+ {path}
+ </div>
);
}
exports[`should render 1`] = `
<div
- className="concise-issue-component note text-ellipsis"
+ className="concise-issue-component text-ellipsis note"
+ title="src/app/folder/sub-folder/long-folder/name/app.js"
>
- src/.../long-folder/name/app.js
+ src/app/folder/sub-folder/long-folder/name/app.js
</div>
`;