Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 11a8b48

Browse files
committed
ui(patches): show error messages when dry run fails.
1 parent 018a009 commit 11a8b48

3 files changed

Lines changed: 108 additions & 172 deletions

File tree

src/components/Callout/Callout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Callout: React.FC<CalloutProps> = ({
3232
type = "info",
3333
timeout = null,
3434
onClick = () => void 0,
35-
preventRetry = false,
35+
// preventRetry = false,
3636
...props
3737
}) => {
3838
const [isOpened, setIsOpened] = useState(false);
@@ -48,7 +48,8 @@ export const Callout: React.FC<CalloutProps> = ({
4848
}, []);
4949

5050
const handleRetryClick = () => {
51-
if (preventRetry) return;
51+
// TBD: why was this added?
52+
// if (preventRetry) return;
5253
setIsOpened(false);
5354
const timeoutId = setTimeout(() => {
5455
onClick();

src/components/Markdown/CodeBlock.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const _MarkdownCodeBlock: React.FC<MarkdownCodeBlockProps> = ({
7373
)}
7474
language={language}
7575
useInlineStyles={useInlineStyles}
76-
// useInlineStyles={false}
7776
>
7877
{textWithOutIndent ? textWithOutIndent : "No content"}
7978
</SyntaxHighlighter>

0 commit comments

Comments
 (0)