mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
refactor: clean some codes
This commit is contained in:
@@ -5,7 +5,7 @@ import { range } from "fp-ts/NonEmptyArray";
|
||||
|
||||
import { toolGroups } from "@/config/tools";
|
||||
import { uuid } from "@/lib/uuid";
|
||||
import { useScrollFollow } from "@/hooks/useScrollFollow";
|
||||
import { useAutoScroll } from "@/hooks/useAutoScroll";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Input, InputProps } from "@/components/ui/input";
|
||||
import * as Select from "@/components/ui/select";
|
||||
@@ -37,7 +37,7 @@ export default function Page() {
|
||||
const [uuidVersion, setUuidVersion] = useState<UuidVersion>("4");
|
||||
const [generates, setGenerates] = useState(1);
|
||||
const [uuids, setUuids] = useState<string[]>([]);
|
||||
const ref = useScrollFollow<HTMLTextAreaElement>([uuids]);
|
||||
const ref = useAutoScroll<HTMLTextAreaElement>([uuids]);
|
||||
|
||||
const uuidsString = uuids.join("\n");
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import { Configuration } from "@/components/configuration";
|
||||
import { Configurations } from "@/components/configurations";
|
||||
import { icons } from "@/components/icons";
|
||||
import { PageRootSection } from "@/components/page-root-section";
|
||||
import { PageSection } from "@/components/page-section";
|
||||
|
||||
export default function Page() {
|
||||
const { theme = "system", setTheme } = useTheme();
|
||||
@@ -38,9 +37,7 @@ export default function Page() {
|
||||
|
||||
return (
|
||||
<PageRootSection title={singleTools.settings.longTitle}>
|
||||
<PageSection>
|
||||
<Configurations list={[appThemeConfig]} />
|
||||
</PageSection>
|
||||
<Configurations list={[appThemeConfig]} />
|
||||
</PageRootSection>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user