Skip to content

Commit

Permalink
fix settings page styles
Browse files Browse the repository at this point in the history
  • Loading branch information
danreeves committed Oct 8, 2023
1 parent 97d9917 commit e0e2780
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions app/routes/_pages.settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { authenticator } from "~/services/auth.server"
import { Form, useLoaderData } from "@remix-run/react"

import { TrashIcon } from "@heroicons/react/24/outline"
import { Button } from "~/components/ui/button"

export async function loader({ request }: LoaderArgs) {
let user = await authenticator.isAuthenticated(request, {
Expand Down Expand Up @@ -35,16 +36,12 @@ export default function Settings() {
let { hasAuthToken } = useLoaderData<typeof loader>()

return (
<div className="rounded bg-white p-4 shadow">
<div className="p-4 rounded-lg border bg-card text-card-foreground shadow-smw">
<Form method="post" className="flex flex-row items-center gap-6">
<button
type="submit"
disabled={!hasAuthToken}
className="flex cursor-pointer flex-row items-center gap-2 rounded bg-red-600 p-4 text-white disabled:cursor-not-allowed disabled:bg-neutral-400"
>
<Button variant="destructive" type="submit" disabled={!hasAuthToken}>
<TrashIcon className="block h-6 w-6" aria-hidden="true" />
Delete authentication token
</button>
</Button>

<p>
Delete your authentication token? You'll no longer be able to use the
Expand Down
2 changes: 1 addition & 1 deletion app/routes/_pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function PageLayout() {

return (
<div className="h-full w-full overflow-scroll pb-16">
<header className="bg-background shadow">
<header className="bg-background ">
<Title title={matches.at(-1)?.data?.title} />
<Breadcrumbs
crumbs={uniqBy(matches, (match) => {
Expand Down

0 comments on commit e0e2780

Please sign in to comment.