Skip to content

Commit 458d777

Browse files
committed
feat: use markdown and change message
1 parent ad78edf commit 458d777

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/components/common/AppNameWarning.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
import React from 'react'
22
import styled from 'styled-components'
33
import { Alert } from 'antd'
4+
import Markdown from './Markdown'
45

56
const Container = styled.div({
6-
width: '100%'
7+
width: '100%',
8+
marginTop: '16px'
79
})
810

911
export const AppNameWarning = () => (
1012
<Container>
1113
<Alert
12-
message="Don't forget: `RnDiffApp` is a placeholder. When upgrading, all
13-
instances of `RnDiffApp` should be `YourProjectName`, all `rndiffapp`
14-
should be `yourprojectname` etc."
14+
message={
15+
<Markdown>
16+
Keep in mind that `RnDiffApp` and `rndiffapp` are placeholders. When
17+
upgrading, you should replace them with your actual project's name.
18+
</Markdown>
19+
}
1520
type="info"
1621
closable
1722
/>

src/components/common/Markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const InlineCode = styled.em`
1919
padding: 0.2em 0.4em;
2020
`
2121

22-
export default ({ forceBlock, options = {}, ...props }) => (
22+
export default ({ forceBlock = false, options = {}, ...props }) => (
2323
<Markdown
2424
{...props}
2525
options={{

0 commit comments

Comments
 (0)