Fix help component

This commit is contained in:
Arnaud 2024-11-11 10:08:17 +07:00
parent c6f26e4f1e
commit e39b3e92b2
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
2 changed files with 95 additions and 93 deletions

View File

@ -15,7 +15,7 @@ import * as Sentry from "@sentry/react";
import { CodexSdk } from "./sdk/codex";
import { ErrorPlaceholder } from "./components/ErrorPlaceholder/ErrorPlaceholder.tsx";
if (true || (import.meta.env.PROD && !import.meta.env.CI)) {
if (import.meta.env.PROD && !import.meta.env.CI) {
Sentry.init({
release: "codex-storage-marketplace-ui@" + import.meta.env.PACKAGE_VERSION,
dsn: "https://22d77c59a27b8d5efc07132188b505b9@o4507855852011520.ingest.de.sentry.io/4507866758512720",

View File

@ -4,8 +4,7 @@ import { HelpCircle } from "lucide-react";
import { useEffect } from "react";
import * as Sentry from "@sentry/react";
export const Route = createFileRoute("/dashboard/help")({
component: () => {
const Help = () => {
useEffect(() => {
const feedback = Sentry.feedbackIntegration({
// Additional SDK configuration goes in here, for example:
@ -43,8 +42,8 @@ export const Route = createFileRoute("/dashboard/help")({
What is the purpose of this web application?
</p>
<p className="help-text">
This application allows you to interact with the Codex
Marketplace network in a user-friendly manner.
This application allows you to interact with the Codex Marketplace
network in a user-friendly manner.
</p>
</div>
</div>
@ -65,9 +64,9 @@ export const Route = createFileRoute("/dashboard/help")({
<div className="help-itemBody">
<p className="help-itemTitle">Is it production ready ?</p>
<p className="help-text">
Not at all! This is a very early alpha version. You should
expect to encounter bugs, but don't worryfeel free to reach out
to us if you need assistance.
Not at all! This is a very early alpha version. You should expect
to encounter bugs, but don't worryfeel free to reach out to us if
you need assistance.
</p>
</div>
</div>
@ -110,5 +109,8 @@ export const Route = createFileRoute("/dashboard/help")({
</div>
</div>
);
},
};
export const Route = createFileRoute("/dashboard/help")({
component: Help,
});