Skip to content

Commit

Permalink
Use brain icon for automatic generate action button
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeyash07 committed Jul 17, 2024
1 parent ac0fd31 commit b7308c3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
QuickActionButton,
QuickActionConfirmButton,
SegmentInput,
Svg,
Tab,
TabList,
TabPanel,
Expand All @@ -34,7 +35,6 @@ import {
listToGroupList,
isTruthyString,
} from '@togglecorp/fujs';
import { IoIosRefresh } from 'react-icons/io';
import {
IoChevronForward,
IoChevronBackOutline,
Expand All @@ -52,6 +52,7 @@ import {
AnalyticalInformationSummaryQuery,
AnalyticalInformationSummaryQueryVariables,
} from '#generated/types';
import brainIcon from '#resources/img/brain.svg';
import EntryCard from './EntryCard';
import EntryContext from '../../context';
import Summary from './Summary';
Expand Down Expand Up @@ -603,8 +604,12 @@ function StoryAnalysisModal(props: Props) {
message="You are about to auto generate information gap using NLP. This will replace the current information gap. Are you sure you want to continue?"
onConfirm={informationGapOnClick}
disabled={project?.isPrivate || pending}
variant="nlp-primary"
>
<IoIosRefresh />
<Svg
className={styles.brainIcon}
src={brainIcon}
/>
</QuickActionConfirmButton>
{project?.isPrivate && (
<div className={styles.info}>
Expand Down Expand Up @@ -667,8 +672,12 @@ function StoryAnalysisModal(props: Props) {
message="You are about to auto generate analytical statement using NLP. This will replace the current analytical statement. Are you sure you want to continue?"
onConfirm={analyticalStatementOnClick}
disabled={project?.isPrivate || pending}
variant="nlp-primary"
>
<IoIosRefresh />
<Svg
className={styles.brainIcon}
src={brainIcon}
/>
</QuickActionConfirmButton>
{project?.isPrivate && (
<div className={styles.info}>
Expand Down Expand Up @@ -705,8 +714,12 @@ function StoryAnalysisModal(props: Props) {
message="You are about to auto generate my analysis using NLP. This will use the current analytical statement, automatic summary, informations gap, entries and replace the current my analysis. Are you sure you want to continue?"
onConfirm={myAnalysisOnClick}
disabled={project?.isPrivate || pending}
variant="nlp-primary"
>
<IoIosRefresh />
<Svg
className={styles.brainIcon}
src={brainIcon}
/>
</QuickActionConfirmButton>
{project?.isPrivate && (
<div className={styles.info}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@

.label-container-action {
display: flex;

.brain-icon {
width: auto;
height: var(--dui-font-size-extra-large);
}
}
}
}
Expand Down

0 comments on commit b7308c3

Please sign in to comment.