a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

made the blockbutton a link, replaced block and embed inputs with url attribute to text attribute

celine 32bc92fa 628d4250

+8 -6
+7 -5
components/Blocks/ButtonBlock.tsx
··· 34 34 } 35 35 36 36 return ( 37 - <form 38 - action={url?.data.value} 37 + <a 38 + href={url?.data.value} 39 39 target="_blank" 40 40 className={`hover:outline-accent-contrast !rounded-md ${isSelected ? "block-border-selected !border-0" : "block-border !border-transparent !border-0"}`} 41 41 > 42 - <ButtonPrimary type="submit">{text?.data.value}</ButtonPrimary> 43 - </form> 42 + <ButtonPrimary role="link" type="submit"> 43 + {text?.data.value} 44 + </ButtonPrimary> 45 + </> 44 46 ); 45 47 }; 46 48 ··· 186 188 /> 187 189 <Separator /> 188 190 <Input 189 - type="url" 191 + type="text" 190 192 id="button-block-url-input" 191 193 className="w-full grow border-none outline-none bg-transparent" 192 194 placeholder="www.example.com"
+1 -1
components/Blocks/EmbedBlock.tsx
··· 200 200 /> 201 201 <Separator /> 202 202 <Input 203 - type="url" 203 + type="text" 204 204 className="w-full grow border-none outline-none bg-transparent " 205 205 placeholder="www.example.com" 206 206 value={linkValue}