Updated packages
This commit is contained in:
@@ -71,7 +71,7 @@ function break_lines(input: string, width: number): string {
|
||||
.join("\n")
|
||||
}
|
||||
|
||||
export default function Fortune(): React.ReactElement {
|
||||
export default function FortuneComponent(): React.ReactElement {
|
||||
const id = Math.floor(Math.random() * messages.length);
|
||||
window.localStorage.setItem("martinRefShown", id === 6 ? "yes" : "no");
|
||||
const text = break_lines(messages[id], 60);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
import Main from "../layouts/Main.astro";
|
||||
import Fortune from "../components/Fortune";
|
||||
import FortuneComponent from "../components/Fortune";
|
||||
---
|
||||
|
||||
<Main title="Fortune" description="Wisdom from Tux">
|
||||
<Fortune client:only="react" />
|
||||
</Main>
|
||||
<FortuneComponent client:only="react" />
|
||||
</Main>
|
||||
|
||||
Reference in New Issue
Block a user