Skip to content

Commit

Permalink
fix: issue with the prompt component
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Jan 23, 2025
1 parent a54c20d commit 4528710
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/custom/Prompt/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import PromptComponent from './promt-component';

import PromptComponent, { PROMPT_VARIANTS } from './promt-component';
export { PROMPT_VARIANTS, PromptComponent };
export default PromptComponent;
8 changes: 7 additions & 1 deletion src/custom/Prompt/promt-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ const PromptComponent = forwardRef<PromptRef, PromptProps>(({ variant }, ref) =>
{subtitle && (
<ModalBody>
<Subtitle id="alert-dialog-description" variant="body1" component="div">
<Typography variant="body1" component="div">
<Typography
variant="body1"
component="div"
style={{
color: theme.palette.text.primary
}}
>
{subtitle}
</Typography>
</Subtitle>
Expand Down
3 changes: 2 additions & 1 deletion src/custom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { LearningCard } from './LearningCard';
import { BasicMarkdown, RenderMarkdown } from './Markdown';
import { ModalCard } from './ModalCard';
import PopperListener, { IPopperListener } from './PopperListener';
import PromptComponent from './Prompt';
import { PROMPT_VARIANTS, PromptComponent } from './Prompt';
import ResponsiveDataTable, {
DataTableEllipsisMenu,
ResponsiveDataTableProps
Expand Down Expand Up @@ -90,6 +90,7 @@ export {
InfoTooltip,
LearningCard,
ModalCard,
PROMPT_VARIANTS,
PopperListener,
PromptComponent,
ResponsiveDataTable,
Expand Down

0 comments on commit 4528710

Please sign in to comment.