mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
fix(webapp): change the remove line option text to be red to intent as danger action
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { Menu, MenuItem, Position, Button } from '@blueprintjs/core';
|
import { Menu, MenuItem, Position, Button, Intent } from '@blueprintjs/core';
|
||||||
import { Popover2 } from '@blueprintjs/popover2';
|
import { Popover2 } from '@blueprintjs/popover2';
|
||||||
import { useFormikContext } from 'formik';
|
import { useFormikContext } from 'formik';
|
||||||
import * as R from 'ramda';
|
import * as R from 'ramda';
|
||||||
@@ -74,6 +74,7 @@ export const ActionsCellRenderer = ({
|
|||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
intent={Intent.DANGER}
|
||||||
onClick={handleClickRemoveRole}
|
onClick={handleClickRemoveRole}
|
||||||
text={intl.get('make_journal.entries.remove_row')}
|
text={intl.get('make_journal.entries.remove_row')}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { MenuItem, Menu, Button, Position } from '@blueprintjs/core';
|
import { MenuItem, Menu, Button, Position, Intent } from '@blueprintjs/core';
|
||||||
import { Popover2 } from '@blueprintjs/popover2';
|
import { Popover2 } from '@blueprintjs/popover2';
|
||||||
|
|
||||||
import { Align, CellType, Features } from '@/constants';
|
import { Align, CellType, Features } from '@/constants';
|
||||||
@@ -47,6 +47,7 @@ export function ActionsCellRenderer({
|
|||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
intent={Intent.DANGER}
|
||||||
onClick={onRemoveRole}
|
onClick={onRemoveRole}
|
||||||
text={<T id={'item_entries.remove_row'} />}
|
text={<T id={'item_entries.remove_row'} />}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import { Button, Menu, MenuItem } from '@blueprintjs/core';
|
import { Button, Intent, Menu, MenuItem } from '@blueprintjs/core';
|
||||||
import { Popover2 } from '@blueprintjs/popover2';
|
import { Popover2 } from '@blueprintjs/popover2';
|
||||||
import { useFormikContext } from 'formik';
|
import { useFormikContext } from 'formik';
|
||||||
|
|
||||||
@@ -51,6 +51,7 @@ const ActionsCellRenderer = ({
|
|||||||
const exampleMenu = (
|
const exampleMenu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
intent={Intent.DANGER}
|
||||||
onClick={handleClickRemoveRole}
|
onClick={handleClickRemoveRole}
|
||||||
text={intl.get('expense.entries.remove_row')}
|
text={intl.get('expense.entries.remove_row')}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user