It's impossible to be set on a type schema

This commit is contained in:
Eclypsed
2024-02-12 16:00:55 -05:00
parent 269d79327e
commit 8544f66397
5 changed files with 32 additions and 20 deletions

View File

@@ -74,7 +74,10 @@
}
}
const deleteConnection: SubmitFunction = () => {
const profileActions: SubmitFunction = ({ action, cancel }) => {
console.log(action)
cancel()
return ({ result }) => {
if (result.type === 'failure') {
return ($newestAlert = ['warning', result.data?.message])
@@ -108,9 +111,9 @@
</form>
</div>
</section>
<div class="grid gap-8 grid-cols-3">
<div id="connection-profile-grid" class="grid gap-8">
{#each connections as connection}
<ConnectionProfile {connection} submitFunction={deleteConnection} />
<ConnectionProfile {connection} submitFunction={profileActions} />
{/each}
</div>
{#if newConnectionModal !== null}
@@ -122,4 +125,7 @@
.add-connection-button {
background-image: linear-gradient(to bottom, rgb(30, 30, 30), rgb(10, 10, 10));
}
#connection-profile-grid {
grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
}
</style>