Skip to content

Commit

Permalink
Merge pull request #162 from bigcapitalhq/abouhuolia/big-22-make-the-…
Browse files Browse the repository at this point in the history
…remove-line-text-to-be-in-red

fix(webapp): change the remove line option text to be red to intent as danger action
  • Loading branch information
abouolia authored Jun 19, 2023
2 parents caab216 + 70415d1 commit e145eab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-nocheck
import React, { useEffect } from 'react';
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 { useFormikContext } from 'formik';
import * as R from 'ramda';
Expand Down Expand Up @@ -74,6 +74,7 @@ export const ActionsCellRenderer = ({
const exampleMenu = (
<Menu>
<MenuItem
intent={Intent.DANGER}
onClick={handleClickRemoveRole}
text={intl.get('make_journal.entries.remove_row')}
/>
Expand Down
3 changes: 2 additions & 1 deletion packages/webapp/src/containers/Entries/components.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-nocheck
import React from 'react';
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 { Align, CellType, Features } from '@/constants';
Expand Down Expand Up @@ -47,6 +47,7 @@ export function ActionsCellRenderer({
const exampleMenu = (
<Menu>
<MenuItem
intent={Intent.DANGER}
onClick={onRemoveRole}
text={<T id={'item_entries.remove_row'} />}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-nocheck
import React from 'react';
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 { useFormikContext } from 'formik';

Expand Down Expand Up @@ -51,6 +51,7 @@ const ActionsCellRenderer = ({
const exampleMenu = (
<Menu>
<MenuItem
intent={Intent.DANGER}
onClick={handleClickRemoveRole}
text={intl.get('expense.entries.remove_row')}
/>
Expand Down

0 comments on commit e145eab

Please sign in to comment.