Skip to content

Commit

Permalink
run back
Browse files Browse the repository at this point in the history
  • Loading branch information
lumi-tip committed Dec 11, 2024
1 parent 6b8c527 commit 15c76fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/components/MarkDownParser/MDComponents/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ function QuoteVersion4({ ...props }) {
);
}
export function Quote({ children }) {
const version = 1;
const [version, setVersion] = useState(2);

useEffect(() => {
setVersion(Math.floor(Math.random() * 4) + 1);
}, []);
if (version === 1 && children.length > 0) {
return (
<QuoteVersion1>
Expand Down

0 comments on commit 15c76fd

Please sign in to comment.