Added Note: variety to markdown message

This commit is contained in:
Mitchell McCaffrey 2020-07-02 15:59:21 +10:00
parent f90e07b89b
commit 58736b570c
3 changed files with 11 additions and 2 deletions

View File

@ -49,7 +49,12 @@ function ListItem(props) {
}
function Code({ children, value }) {
const variant = value.startsWith("Warning:") ? "warning" : "";
let variant = "";
if (value.startsWith("Warning:")) {
variant = "warning";
} else if (value.startsWith("Note:")) {
variant = "note";
}
return (
<Message variant={variant} my={2} as="span" sx={{ display: "block" }}>
{children}

View File

@ -22,7 +22,7 @@ To do this there is the Column and Row properties. Columns represents how many g
`Tip: Owlbear Rodeo can automatically fill the Column and Row properties for you if you include them in the file name of the uploaded map. E.g. River [10x15] will create a map named River with 10 columns and 15 rows`
`Warning: When uploading a custom map keep the file size in mind. Maps are shared between users in Owlbear Rodeo so if a map is taking too long to load for other party members consider lowering the file size.`
`Note: When uploading a custom map keep the file size in mind. Maps are shared between users in Owlbear Rodeo so if a map is taking too long to load for other party members consider lowering the file size.`
## Custom Maps (Advanced)

View File

@ -269,5 +269,9 @@ export default {
backgroundColor: "#d65c64",
borderLeftColor: "#ff939b",
},
note: {
backgroundColor: "#cd9937",
borderLeftColor: "#ffe493",
},
},
};