removed extra fields
This commit is contained in:
parent
2042b94680
commit
18e0b8b010
|
@ -99,46 +99,12 @@ export default function Appearance() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
{/* <SubmitButton
|
||||||
<div className="flex items-center gap-2 w-full rounded-md h-8">
|
|
||||||
<p className="truncate w-full pr-7 text-3xl font-thin">Link Card</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="divider my-3"></div>
|
|
||||||
|
|
||||||
<Checkbox
|
|
||||||
label="Display Icons"
|
|
||||||
state={user.displayLinkIcons}
|
|
||||||
onClick={() =>
|
|
||||||
setUser({ ...user, displayLinkIcons: !user.displayLinkIcons })
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
{user.displayLinkIcons ? (
|
|
||||||
<Checkbox
|
|
||||||
label="Blurred"
|
|
||||||
className="pl-5 mt-1"
|
|
||||||
state={user.blurredFavicons}
|
|
||||||
onClick={() =>
|
|
||||||
setUser({ ...user, blurredFavicons: !user.blurredFavicons })
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
) : undefined}
|
|
||||||
<p className="my-3">Preview:</p>
|
|
||||||
|
|
||||||
<LinkPreview
|
|
||||||
settings={{
|
|
||||||
blurredFavicons: user.blurredFavicons,
|
|
||||||
displayLinkIcons: user.displayLinkIcons,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<SubmitButton
|
|
||||||
onClick={submit}
|
onClick={submit}
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
label="Save"
|
label="Save"
|
||||||
className="mt-2 mx-auto lg:mx-0"
|
className="mt-2 mx-auto lg:mx-0"
|
||||||
/>
|
/> */}
|
||||||
</div>
|
</div>
|
||||||
</SettingsLayout>
|
</SettingsLayout>
|
||||||
);
|
);
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `blurredFavicons` on the `User` table. All the data in the column will be lost.
|
||||||
|
- You are about to drop the column `displayLinkIcons` on the `User` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "User" DROP COLUMN "blurredFavicons",
|
||||||
|
DROP COLUMN "displayLinkIcons";
|
|
@ -45,8 +45,6 @@ model User {
|
||||||
archiveAsPDF Boolean @default(true)
|
archiveAsPDF Boolean @default(true)
|
||||||
archiveAsWaybackMachine Boolean @default(false)
|
archiveAsWaybackMachine Boolean @default(false)
|
||||||
isPrivate Boolean @default(false)
|
isPrivate Boolean @default(false)
|
||||||
displayLinkIcons Boolean @default(true)
|
|
||||||
blurredFavicons Boolean @default(false)
|
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt @default(now())
|
updatedAt DateTime @updatedAt @default(now())
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue