Skip to content

Commit

Permalink
Issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
iswarmondal committed Feb 19, 2023
1 parent 696685d commit 3968e92
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/lib/components/SubmitReview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
siteSafety: siteSafety ?? ''
};
let CID = await storeMetaData(metaData);
let metaDataUri = `ipfs://${CID}`.split(',')[0];
// let CID = await storeMetaData(metaData);
// let metaDataUri = `ipfs://${CID}`.split(',')[0];
let reviewData = {
category: category ?? '',
domainAddress: domainAddress ?? '',
siteUrl: websiteUrl ?? '',
siteType: siteType ?? '',
siteTag: siteTag ?? '',
siteSafety: siteSafety ?? '',
metaDataUri,
voter: $walletAddress
};
let [response, error] = await createReview(reviewData);
// let reviewData = {
// category: category ?? '',
// domainAddress: domainAddress ?? '',
// siteUrl: websiteUrl ?? '',
// siteType: siteType ?? '',
// siteTag: siteTag ?? '',
// siteSafety: siteSafety ?? '',
// metaDataUri,
// voter: $walletAddress
// };
// let [response, error] = await createReview(reviewData);
isLoading = false;
showModal = false;
Expand Down Expand Up @@ -99,21 +99,21 @@
placeholder="TITLE"
class="input input-bordered input-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"
bind:value={title}
required={true}
required
/>
<!-- DESCRIPTION -->
<p class="text-md mt-3 mb-3">DESCRIPTION</p>
<textarea
placeholder="DESCRIPTION"
class="textarea textarea-success dark:bg-gray-900 dark:text-white dark:border-zinc-600 input-md w-full max-w-xs"
bind:value={description}
required={true}
required
/>
<!-- CATEGORY -->
<p class="text-md mt-3 mb-3">CATEGORY</p>
<select
class="select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"
required={true}
required
bind:value={category}
>
<option disabled selected>Pick a category</option>
Expand All @@ -124,7 +124,7 @@
<p class="text-md mt-3 mb-3">SITE TYPE</p>
<select
class="select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"
required={true}
required
bind:value={siteType}
>
<option disabled selected>Pick a site type</option>
Expand All @@ -139,7 +139,7 @@
<p class="text-md mt-3 mb-3">SITE TAG</p>
<select
class="select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"
required={true}
required
bind:value={siteTag}
>
<option disabled selected>Pick a site tag</option>
Expand All @@ -153,7 +153,7 @@
<p class="text-md mt-3 mb-3">SITE SAFETY</p>
<select
class="select select-success w-full max-w-xs dark:bg-gray-900 dark:text-white dark:border-zinc-600"
required={true}
required
bind:value={siteSafety}
>
<option disabled selected>Pick a site safety</option>
Expand Down

0 comments on commit 3968e92

Please sign in to comment.