-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nevo David
committed
Oct 5, 2024
1 parent
9342969
commit 3bfac7a
Showing
13 changed files
with
519 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
14 changes: 14 additions & 0 deletions
14
apps/frontend/src/components/launches/providers/bluesky/bluesky.provider.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { FC } from 'react'; | ||
import { withProvider } from '@gitroom/frontend/components/launches/providers/high.order.provider'; | ||
|
||
const Empty: FC = (props) => { | ||
return null; | ||
}; | ||
|
||
export default withProvider(null, Empty, undefined, async (posts) => { | ||
if (posts.some((p) => p.length > 4)) { | ||
return 'There can be maximum 4 pictures in a post.'; | ||
} | ||
|
||
return true; | ||
}); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use client'; | ||
|
||
import { FC, useEffect } from 'react'; | ||
import { useRouter } from 'next/navigation'; | ||
|
||
export const Redirect: FC<{url: string, delay: number}> = (props) => { | ||
const { url, delay } = props; | ||
const router = useRouter(); | ||
useEffect(() => { | ||
setTimeout(() => { | ||
router.push(url); | ||
}, delay); | ||
}, []); | ||
return null; | ||
} |
Oops, something went wrong.