New source found from dndbeyond.com
This commit is contained in:
@@ -6,12 +6,14 @@ interface MaxCharactersMessageTextProps extends HTMLAttributes<HTMLDivElement> {
|
||||
includeTitle?: boolean;
|
||||
useLinks?: boolean;
|
||||
useMyCharactersLink?: boolean;
|
||||
hasLockedCharacters?: boolean;
|
||||
}
|
||||
|
||||
export const MaxCharactersMessageText: FC<MaxCharactersMessageTextProps> = ({
|
||||
includeTitle,
|
||||
useLinks,
|
||||
useMyCharactersLink,
|
||||
hasLockedCharacters,
|
||||
...props
|
||||
}) => {
|
||||
const subscribe = useLinks ? (
|
||||
@@ -31,6 +33,21 @@ export const MaxCharactersMessageText: FC<MaxCharactersMessageTextProps> = ({
|
||||
"My Characters"
|
||||
);
|
||||
|
||||
if (hasLockedCharacters) {
|
||||
return (
|
||||
<div {...props}>
|
||||
<p className={styles.messageSubtext}>
|
||||
Your character slots are full. To create a new character, select which
|
||||
characters to keep using the options below, or{" "}
|
||||
<a className={styles.link} href="/store/subscribe">
|
||||
subscribe
|
||||
</a>{" "}
|
||||
to unlock additional slots.
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div {...props}>
|
||||
{includeTitle && (
|
||||
|
||||
Reference in New Issue
Block a user