Skip to content

Commit

Permalink
minor padding and inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsbhat committed Dec 20, 2024
1 parent 91a1b18 commit 3dfd97b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/app/[...slug]/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { createHash } from 'crypto';
import Link from "next/link";
import { DeleteSite } from "@/components/controlModals/delete-site";
import { ChangePassword } from "@/components/controlModals/change-password";
Expand Down Expand Up @@ -54,7 +53,7 @@ export function Client({ params, decryptedData, hash }: ClientProps) {
const [isDirty, setIsDirty] = useState<boolean[]>([]);
const [editorContentKeys, setEditorContentKeys] = useState<number[]>([]);
const tabsListRef = useRef<HTMLDivElement>(null);
const [currentInitHash, setCurrentInitHash] = useState(createHash('sha256').update(decryptedData).digest('hex'));
const [currentInitHash, setCurrentInitHash] = useState(sha256(decryptedData));

const initialTabs: TabsValues = (() => {
try {
Expand Down Expand Up @@ -175,7 +174,6 @@ export function Client({ params, decryptedData, hash }: ClientProps) {
}
}
};

function ButtonGroup() {
return (
<div className="flex flex-col sm:flex-row items-center justify-between w-full gap-4 sm:gap-0">
Expand Down
11 changes: 0 additions & 11 deletions src/components/features/page.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/landing/features.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { LockKeyhole, IdCard, Github, GlobeLock, type LucideIcon } from 'lucide-react'
import { Button } from "@/components/ui/button"
import Link from 'next/link';
import { Card, CardContent } from "@/components/ui/card"

type FeatureProps = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/landing/how-to-use.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function HowToUse() {
const steps = [
{
title: "Step 1",
description: "Create a notepad with a unique name by simply hovering to sealnotes.com/your-name",
description: "Create your own notepad at sealnotes.com/your-name.",
},
{
title: "Step 2",
Expand All @@ -24,7 +24,7 @@ export default function HowToUse() {
{steps.map((step, index) => (
<Card key={index} className="w-full max-w-sm h-48">
<CardContent className="flex flex-col items-center justify-center p-6 text-center h-full">
<h2 className="text-2xl font-bold">{step.title}</h2>
<h2 className="text-2xl font-bold flex">{step.title}</h2>
<p className="mt-2 text-sm text-gray-600">{step.description}</p>
</CardContent>
</Card>
Expand Down

0 comments on commit 3dfd97b

Please sign in to comment.