Skip to content

Commit

Permalink
fix card
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed May 1, 2024
1 parent a786757 commit 63de043
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/v4/card/ToolBackgroundCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ToolBackgroundCard = ({
<Link href={`/toolbox/${slug}`}>
<div
className={
"flex pt-0 grid grid-col-1 gap-2 flex-grow h-full rounded-t-2xl shadow hover:shadow-xl border border-gray-300/60 transition transition-all duration-400 hover:scale-[1.02] group bg-white relative rounded-2xl fade-"
"flex pt-0 grid grid-col-1 gap-2 flex-grow h-full rounded-t-2xl shadow hover:shadow-xl border border-gray-300/60 transition transition-all duration-400 hover:scale-[1.02] group bg-white relative rounded-2xl fade- overflow-hidden"
}
>
<div className="rounded-xl px-0 block cursor-pointer">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"yup": "^0.32.11"
},
"optionalDependencies": {
"@prototypr/prototypr-postie": "^1.0.2"
"@prototypr/prototypr-postie": "^1.0.3"
},
"devDependencies": {
"@babel/core": "^7.20.7",
Expand Down
10 changes: 8 additions & 2 deletions pages/api/post/index-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ let processPost;

(async () => {
try {
const postie = await import("@prototypr/prototypr-postie");
processPost = postie.processPost;
if(process.env.NODE_ENV === 'development'){
console.log('is dev')
const postie = await import(".prototypr/prototypr-postie/index.js");
processPost = postie.processPost;
}else{
const postie = await import("@prototypr/prototypr-postie");
processPost = postie.processPost;
}
} catch (error) {
processPost = () => {
// Provide a fallback implementation or handle the error appropriately
Expand Down

0 comments on commit 63de043

Please sign in to comment.