+ {/* Links that are already in account DO */}
+
+
+ `${id}`)}
+ strategy={verticalListSortingStrategy}
+ >
+ {(links || []).map((link: any, i: number) => (
+
+ ))}
+
+
+
+
{newLinks.map((link: any, i: number) => {
//Check if there is an error
const isError = actionData?.errors && actionData?.errors[`${i}`]
@@ -174,7 +327,7 @@ export default function AccountSettingsLinks() {
link.url || 'https://mywebsite.com'
}-${i}`}
className="
- flex flex-col w-full
+ flex flex-col w-full
sm:flex-row sm:w-full sm:justify-start sm:items-center
mb-4 py-3 px-3 truncate
rounded-md border border-gray-300 "
@@ -237,80 +390,26 @@ export default function AccountSettingsLinks() {
)
})}
- {/* Links that are already in account DO */}
-