mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 00:33:38 -05:00
feat: use Button component for dev page, linting
This commit is contained in:
parent
734fa06425
commit
bfeefb4c73
2 changed files with 12 additions and 3 deletions
|
@ -126,7 +126,7 @@ export default function App() {
|
|||
)}
|
||||
{alert.dismissable !== false && (
|
||||
<a onClick={() => setStatusBar(false)}>
|
||||
<div className="button">Dismiss</div>
|
||||
<div className="button">{"Dismiss"}</div>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -2,6 +2,8 @@ import { Wrench } from "@styled-icons/boxicons-solid";
|
|||
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
|
||||
import { Button } from "@revoltchat/ui";
|
||||
|
||||
import PaintCounter from "../../lib/PaintCounter";
|
||||
import { TextReact } from "../../lib/i18n";
|
||||
|
||||
|
@ -45,8 +47,15 @@ export default function Developer() {
|
|||
</div>
|
||||
|
||||
<div style={{ padding: "16px" }}>
|
||||
<a style={"cursor: pointer;"} onClick={() => setCrash(true)}>click to crash app</a>
|
||||
{crash && (window as any).sus.sus()}
|
||||
<Button palette="error" onClick={() => setCrash(true)}>
|
||||
Click to crash app
|
||||
</Button>
|
||||
{
|
||||
crash &&
|
||||
(
|
||||
window as any
|
||||
).sus.sus() /* this runs a function that doesn't exist */
|
||||
}
|
||||
{/*<span>
|
||||
<b>Voice Status:</b> {VoiceStatus[voice.status]}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue