Skip to content

Commit

Permalink
[frontend] fix lines view icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit committed Sep 10, 2024
1 parent 19c5393 commit 5f23816
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const Malwares = () => {
<ViewModuleOutlined fontSize="small" color="primary" />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="cards" value="lines" aria-label="lines">
(<ToggleButton key="lines" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="primary" fontSize="small" />
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const Campaigns = () => {
<ViewModuleOutlined fontSize="small" color="primary" />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="cards" value="lines" aria-label="lines">
(<ToggleButton key="lines" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="secondary" fontSize="small" />
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const IntrusionSets = () => {
<ViewModuleOutlined fontSize="small" color="primary" />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="cards" value="lines" aria-label="lines">
(<ToggleButton key="lines" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="secondary" fontSize="small" />
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const ThreatActorsGroup = () => {
<ViewModuleOutlined fontSize="small" color="primary" />
</Tooltip>
</ToggleButton>),
(<ToggleButton key="cards" value="lines" aria-label="lines">
(<ToggleButton key="lines" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="secondary" fontSize="small" />
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ const Workspaces: FunctionComponent<WorkspacesProps> = ({
lineFragment={workspaceLineFragment}
entityTypes={['Workspace']}
searchContextFinal={{ entityTypes: ['Workspace'] }}
additionalHeaderButtons={[
<ToggleButton key="cards" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="primary" fontSize="small"/>
</Tooltip>
</ToggleButton>,
]}
createButton={isFeatureEnable('FAB_REPLACEMENT') && (
<Security needs={[EXPLORE_EXUPDATE, INVESTIGATION_INUPDATE]}>
<WorkspaceCreation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,6 @@ const PublicDashboards = () => {
lineFragment={publicDashboardFragment}
entityTypes={['PublicDashboard']}
searchContextFinal={{ entityTypes: ['PublicDashboard'] }}
additionalHeaderButtons={[
<ToggleButton key="cards" value="lines" aria-label="lines">
<Tooltip title={t_i18n('Lines view')}>
<ViewListOutlined color="primary" fontSize="small"/>
</Tooltip>
</ToggleButton>,
]}
actions={(row) => (
<PublicDashboardLineActions
publicDashboard={row}
Expand Down

0 comments on commit 5f23816

Please sign in to comment.