Update Home and Feedback.

This commit is contained in:
Paul 2021-07-09 16:23:06 +01:00
parent c1dc2b9a1d
commit cd394eed3f
3 changed files with 25 additions and 41 deletions

View file

@ -11,15 +11,13 @@
} }
} }
ul { .actions {
gap: 8px;
margin: auto; margin: auto;
display: block; display: flex;
font-size: 18px; width: fit-content;
text-align: center; align-items: center;
flex-direction: column;
li {
list-style: lower-greek;
}
} }
} }

View file

@ -1,4 +1,5 @@
import { Home as HomeIcon } from "@styled-icons/boxicons-solid"; import { Home as HomeIcon } from "@styled-icons/boxicons-solid";
import Button from "../../components/ui/Button";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import styles from "./Home.module.scss"; import styles from "./Home.module.scss";
@ -18,24 +19,23 @@ export default function Home() {
<Text id="app.special.modals.onboarding.welcome" />{" "} <Text id="app.special.modals.onboarding.welcome" />{" "}
<img src={wideSVG} /> <img src={wideSVG} />
</h3> </h3>
<ul> <div className={styles.actions}>
<li> <Link to="/invite/Testers">
Go to your <Link to="/friends">friends list</Link>. <Button contrast error>
</li> Join testers server
<li> </Button>
Give <Link to="/settings/feedback">feedback</Link>. </Link>
</li> <Link to="/settings/feedback">
<li> <Button contrast>
Join <Link to="/invite/Testers">testers server</Link>. Give feedback
</li> </Button>
<li> </Link>
View{" "}
<a href="https://gitlab.insrt.uk/revolt" target="_blank"> <a href="https://gitlab.insrt.uk/revolt" target="_blank">
source code <Button contrast>
Source code
</Button>
</a> </a>
. </div>
</li>
</ul>
</div> </div>
); );
} }

View file

@ -57,23 +57,9 @@ export function Feedback() {
onSelect={() => setChecked("Feature Request")}> onSelect={() => setChecked("Feature Request")}>
<Text id="app.settings.pages.feedback.feature" /> <Text id="app.settings.pages.feedback.feature" />
</Radio> </Radio>
{(location.hostname === "vite.revolt.chat" ||
location.hostname === "local.revolt.chat") && (
<Radio <Radio
disabled={state === "sending"} disabled={state === "sending"}
checked={other === "Revite"} checked={checked === "__other_option__"}
onSelect={() => {
setChecked("__other_option__");
setOther("Revite");
}}>
Issues with Revite
</Radio>
)}
<Radio
disabled={state === "sending"}
checked={
checked === "__other_option__" && other !== "Revite"
}
onSelect={() => setChecked("__other_option__")}> onSelect={() => setChecked("__other_option__")}>
<Localizer> <Localizer>
<InputBox <InputBox