Skip to content

Commit 4528710

Browse files
committed
fix: issue with the prompt component
Signed-off-by: Amit Amrutiya <[email protected]>
1 parent a54c20d commit 4528710

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/custom/Prompt/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import PromptComponent from './promt-component';
2-
1+
import PromptComponent, { PROMPT_VARIANTS } from './promt-component';
2+
export { PROMPT_VARIANTS, PromptComponent };
33
export default PromptComponent;

src/custom/Prompt/promt-component.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ const PromptComponent = forwardRef<PromptRef, PromptProps>(({ variant }, ref) =>
9696
{subtitle && (
9797
<ModalBody>
9898
<Subtitle id="alert-dialog-description" variant="body1" component="div">
99-
<Typography variant="body1" component="div">
99+
<Typography
100+
variant="body1"
101+
component="div"
102+
style={{
103+
color: theme.palette.text.primary
104+
}}
105+
>
100106
{subtitle}
101107
</Typography>
102108
</Subtitle>

src/custom/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { LearningCard } from './LearningCard';
3636
import { BasicMarkdown, RenderMarkdown } from './Markdown';
3737
import { ModalCard } from './ModalCard';
3838
import PopperListener, { IPopperListener } from './PopperListener';
39-
import PromptComponent from './Prompt';
39+
import { PROMPT_VARIANTS, PromptComponent } from './Prompt';
4040
import ResponsiveDataTable, {
4141
DataTableEllipsisMenu,
4242
ResponsiveDataTableProps
@@ -90,6 +90,7 @@ export {
9090
InfoTooltip,
9191
LearningCard,
9292
ModalCard,
93+
PROMPT_VARIANTS,
9394
PopperListener,
9495
PromptComponent,
9596
ResponsiveDataTable,

0 commit comments

Comments
 (0)