Skip to content

Commit

Permalink
simplify insight settings
Browse files Browse the repository at this point in the history
  • Loading branch information
xvvvyz committed Sep 17, 2024
1 parent 893c91c commit 9726f98
Show file tree
Hide file tree
Showing 17 changed files with 391 additions and 475 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl" />;
const Loading = () => <PageModalLoading className="max-w-5xl" />;

export default Loading;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl" />;
const Loading = () => <PageModalLoading className="max-w-5xl" />;

export default Loading;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl" />;
const Loading = () => <PageModalLoading className="max-w-3xl" />;

export default Loading;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Page = async ({ params: { insightId, subjectId } }: PageProps) => {
if (!events || !insight) return null;

return (
<Modal.Content className="max-w-4xl">
<Modal.Content className="max-w-3xl">
<PageModalHeader title="Edit insight" />
<InsightForm events={events} insight={insight} subjectId={subjectId} />
</Modal.Content>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl bg-bg-3" />;
const Loading = () => <PageModalLoading className="max-w-5xl bg-bg-3" />;

export default Loading;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl" />;
const Loading = () => <PageModalLoading className="max-w-3xl" />;

export default Loading;
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Page = async ({ params: { subjectId } }: PageProps) => {
if (!events) return false;

return (
<Modal.Content className="max-w-4xl">
<Modal.Content className="max-w-3xl">
<PageModalHeader title="New insight" />
<InsightForm events={events} subjectId={subjectId} />
</Modal.Content>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PageModalLoading from '@/_components/page-modal-loading';

const Loading = () => <PageModalLoading className="max-w-4xl" />;
const Loading = () => <PageModalLoading className="max-w-5xl" />;

export default Loading;
4 changes: 2 additions & 2 deletions app/_components/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
)}
>
<input
className="peer absolute inset-0 z-10 opacity-0"
className="peer absolute inset-0 opacity-0"
id={name}
name={name}
ref={ref}
Expand All @@ -31,7 +31,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
>
{label && <label htmlFor={name}>{label}</label>}
</div>
<CheckIcon className="h-5 w-5 shrink-0 stroke-fg-2 opacity-0 transition-opacity peer-checked:opacity-100" />
<CheckIcon className="relative -z-10 h-5 w-5 shrink-0 stroke-fg-2 opacity-0 transition-opacity peer-checked:opacity-100" />
</div>
),
);
Expand Down
Loading

0 comments on commit 9726f98

Please sign in to comment.