This commit is contained in:
zmeyer44 2023-11-08 08:54:35 -06:00
parent 885b8a85c2
commit 8de8e00e75
5 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export default function ModalLayout(props: {
}) {
const key = props.params.key;
const { data, type } = nip19.decode(key);
console.log("AT layout", type, data);
if (type === "naddr") {
const kind = data.kind;
if (kind === 30023) {

View File

@ -147,6 +147,7 @@ export default function CreateCalendarEventModal() {
height="288"
width="288"
src={imagePreview}
unoptimized
className={cn(
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
imageStatus === "uploading" && "grayscale",
@ -190,6 +191,7 @@ export default function CreateCalendarEventModal() {
height="288"
width="288"
src={bannerImagePreview}
unoptimized
className={cn(
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
bannerImageStatus === "uploading" && "grayscale",

View File

@ -362,6 +362,7 @@ export default function CreateCalendarEventModal({
height="288"
width="288"
src={imagePreview}
unoptimized
className={cn(
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
imageStatus === "uploading" && "grayscale",
@ -469,6 +470,7 @@ export default function CreateCalendarEventModal({
height="288"
width="288"
src={imagePreview}
unoptimized
className={cn(
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
imageStatus === "uploading" && "grayscale",

View File

@ -364,6 +364,7 @@ function ImageUpload({
alt="Image"
height="288"
width="288"
unoptimized
src={(value || imageUrl) as string}
className={cn(
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",

View File

@ -36,6 +36,7 @@ export default function BannerImage({ image }: { image: string }) {
width={1}
height={1}
src={image}
unoptimized
onLoad={(e) => {
console.log(
"Width",