This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AmazonReportTool.Core.Helper | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace Utility | |
{ | |
/* | |
* | |
struct Recipe | |
{ | |
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)] // important to define the string length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Testimonial = () => ( | |
<div className="grid grid-cols-1 gap-4 md:grid-cols-3"> | |
<div> | |
<img | |
className="mx-auto h-12 w-12 object-cover rounded-full" | |
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80" | |
alt="John" | |
/> | |
<div className="pt-2 pb-4 px-4 -mt-6 flex flex-col justify-between bg-gray-50 rounded-md space-y-2"> | |
<div className="mt-6 space-y-2 text-center"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const upload = async (e) => { | |
e.preventDefault(); | |
setLoading(true) | |
// ... | |
try { | |
const [res] = await Promise.allSettled([ | |
fetch(`${process.env.REACT_APP_API_URL}/upload`, { | |
method: "POST", | |
body: data, | |
credentials: "include", |