minor
This commit is contained in:
parent
885b8a85c2
commit
8de8e00e75
@ -13,6 +13,7 @@ export default function ModalLayout(props: {
|
|||||||
}) {
|
}) {
|
||||||
const key = props.params.key;
|
const key = props.params.key;
|
||||||
const { data, type } = nip19.decode(key);
|
const { data, type } = nip19.decode(key);
|
||||||
|
console.log("AT layout", type, data);
|
||||||
if (type === "naddr") {
|
if (type === "naddr") {
|
||||||
const kind = data.kind;
|
const kind = data.kind;
|
||||||
if (kind === 30023) {
|
if (kind === 30023) {
|
||||||
|
@ -147,6 +147,7 @@ export default function CreateCalendarEventModal() {
|
|||||||
height="288"
|
height="288"
|
||||||
width="288"
|
width="288"
|
||||||
src={imagePreview}
|
src={imagePreview}
|
||||||
|
unoptimized
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
||||||
imageStatus === "uploading" && "grayscale",
|
imageStatus === "uploading" && "grayscale",
|
||||||
@ -190,6 +191,7 @@ export default function CreateCalendarEventModal() {
|
|||||||
height="288"
|
height="288"
|
||||||
width="288"
|
width="288"
|
||||||
src={bannerImagePreview}
|
src={bannerImagePreview}
|
||||||
|
unoptimized
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
||||||
bannerImageStatus === "uploading" && "grayscale",
|
bannerImageStatus === "uploading" && "grayscale",
|
||||||
|
@ -362,6 +362,7 @@ export default function CreateCalendarEventModal({
|
|||||||
height="288"
|
height="288"
|
||||||
width="288"
|
width="288"
|
||||||
src={imagePreview}
|
src={imagePreview}
|
||||||
|
unoptimized
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
||||||
imageStatus === "uploading" && "grayscale",
|
imageStatus === "uploading" && "grayscale",
|
||||||
@ -469,6 +470,7 @@ export default function CreateCalendarEventModal({
|
|||||||
height="288"
|
height="288"
|
||||||
width="288"
|
width="288"
|
||||||
src={imagePreview}
|
src={imagePreview}
|
||||||
|
unoptimized
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
||||||
imageStatus === "uploading" && "grayscale",
|
imageStatus === "uploading" && "grayscale",
|
||||||
|
@ -364,6 +364,7 @@ function ImageUpload({
|
|||||||
alt="Image"
|
alt="Image"
|
||||||
height="288"
|
height="288"
|
||||||
width="288"
|
width="288"
|
||||||
|
unoptimized
|
||||||
src={(value || imageUrl) as string}
|
src={(value || imageUrl) as string}
|
||||||
className={cn(
|
className={cn(
|
||||||
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
"bg-bckground h-full rounded-xl object-cover object-center max-sm:max-h-[100px]",
|
||||||
|
@ -36,6 +36,7 @@ export default function BannerImage({ image }: { image: string }) {
|
|||||||
width={1}
|
width={1}
|
||||||
height={1}
|
height={1}
|
||||||
src={image}
|
src={image}
|
||||||
|
unoptimized
|
||||||
onLoad={(e) => {
|
onLoad={(e) => {
|
||||||
console.log(
|
console.log(
|
||||||
"Width",
|
"Width",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user