Skip to content

Commit

Permalink
protected maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonjong committed Aug 5, 2024
1 parent 5b08e1c commit b053557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/login/FormFields.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { generateClient } from "aws-amplify/api";
import type { AuthUser } from "aws-amplify/auth";
import { uploadData } from "aws-amplify/storage";
import { useRouter } from "next/navigation";
import { useState } from "react";

Expand Down
4 changes: 4 additions & 0 deletions src/components/user/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export default function UserProfile() {
path={imagePath}
fallbackSrc="public/profile.png"
/>
<StorageImage
alt="protected profile"
path={({ identityId }) => `public/${identityId}/profile.jpg`}
/>
</div>
)}
</div>
Expand Down

0 comments on commit b053557

Please sign in to comment.