Skip to content

Commit d44747a

Browse files
Surface shared errors outside the Browse tab
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent ca31438 commit d44747a

File tree

1 file changed

+6
-8
lines changed
  • frontend/app/creator/collaborations

1 file changed

+6
-8
lines changed

frontend/app/creator/collaborations/page.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ export default function CollaborationsPage() {
225225
</button>
226226
</div>
227227

228+
{error && (
229+
<div className="mb-6 rounded-lg bg-red-50 border border-red-200 p-4 text-red-800">
230+
{error}
231+
</div>
232+
)}
233+
228234
{activeTab === "browse" && (
229235
<>
230236
{/* Search Bar */}
@@ -246,14 +252,6 @@ export default function CollaborationsPage() {
246252
</button>
247253
</div>
248254
</form>
249-
250-
{/* Error Message */}
251-
{error && (
252-
<div className="mb-6 rounded-lg bg-red-50 border border-red-200 p-4 text-red-800">
253-
{error}
254-
</div>
255-
)}
256-
257255
{/* Loading State */}
258256
{isLoading ? (
259257
<div className="flex min-h-[60vh] items-center justify-center">

0 commit comments

Comments
 (0)