Skip to content

Commit

Permalink
Merge pull request #1322 from BLSQ/IA-2976_remove_SingleTable
Browse files Browse the repository at this point in the history
Ia 2976 remove single table
  • Loading branch information
quang-le authored Jun 19, 2024
2 parents d8683d2 + f07adfe commit 869979c
Show file tree
Hide file tree
Showing 122 changed files with 3,694 additions and 3,917 deletions.
57 changes: 0 additions & 57 deletions hat/assets/js/apps/Iaso/components/logs/LogsComponent.js

This file was deleted.

156 changes: 0 additions & 156 deletions hat/assets/js/apps/Iaso/components/logs/LogsDetailsComponent.js

This file was deleted.

16 changes: 16 additions & 0 deletions hat/assets/js/apps/Iaso/components/nav/LinkTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ const useStyles = makeStyles(() => ({
cursor: 'pointer',
},
}));
/**
*
* @description: A convenience component to conditionally display a link, usually by checking for permissions. Can easily be wrapped to create links to specific pages. See `LinkToOrgUnit`.
*
* @prop condition: boolean. The condition under which the link will be displayed and active. Usually a check on one or several permissions
* @prop url: The destination url. Should start with a '/' as we use absolute paths
* @prop text: Text to be displayed
* @prop useIcon: Set to `true` to display an IconButton i.o. text
* @prop replace: Set to `true` to replace current location in router history with destination when followingthe link. Defaults to `false`
* @prop target: set to `"_blank"` to always open link in a new tab. Defaults to `"_self"`. Pressing ctrl/cmd + click will always open the link in a new tab
* @prop tooltipMessage: an `IntlMessage` to be displayed by the IconButton tooltip. Doesn't have any effect if `useIcon` is false
* @prop color: override default color
* @prop size: Button size of the IconButton. Requires `useIcon` to be `true`
* @prop iconSize: size of the Icon of the IconButton. Requires `useIcon` to be `true`
* @prop className: a className for styling
*/

export const LinkTo: FunctionComponent<Props> = ({
condition,
Expand Down
Loading

0 comments on commit 869979c

Please sign in to comment.