Prettier format pending files
This commit is contained in:
parent
fe181645d4
commit
d9930643f6
3 changed files with 25 additions and 21 deletions
|
|
@ -1,13 +1,6 @@
|
|||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Globe,
|
||||
Github,
|
||||
Users,
|
||||
Calendar,
|
||||
Mail,
|
||||
MapPin,
|
||||
} from "lucide-react";
|
||||
import { Globe, Github, Users, Calendar, Mail, MapPin } from "lucide-react";
|
||||
|
||||
interface GroupMember {
|
||||
userId: string;
|
||||
|
|
@ -118,7 +111,11 @@ export default function GroupPassport({
|
|||
</a>
|
||||
)}
|
||||
{group.github_url && (
|
||||
<a href={group.github_url} target="_blank" rel="noopener noreferrer">
|
||||
<a
|
||||
href={group.github_url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Button variant="outline" size="sm" className="gap-2">
|
||||
<Github className="h-4 w-4" />
|
||||
GitHub
|
||||
|
|
@ -131,7 +128,9 @@ export default function GroupPassport({
|
|||
{/* Members Section */}
|
||||
{group.members && group.members.length > 0 && (
|
||||
<div>
|
||||
<h2 className="mb-6 text-2xl font-bold text-slate-900">Team Members</h2>
|
||||
<h2 className="mb-6 text-2xl font-bold text-slate-900">
|
||||
Team Members
|
||||
</h2>
|
||||
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{group.members.map((member) => (
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -87,7 +87,10 @@ const SubdomainPassport = () => {
|
|||
const { subdomainInfo, isLoading: isSubdomainLoading } =
|
||||
useSubdomainPassport();
|
||||
const [data, setData] = useState<
|
||||
CreatorPassportResponse | ProjectPassportResponse | GroupPassportResponse | null
|
||||
| CreatorPassportResponse
|
||||
| ProjectPassportResponse
|
||||
| GroupPassportResponse
|
||||
| null
|
||||
>(null);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
|
@ -154,14 +157,8 @@ const SubdomainPassport = () => {
|
|||
|
||||
// Loading passport data
|
||||
if (loading) {
|
||||
const passportType = subdomainInfo.isCreatorPassport
|
||||
? "creator"
|
||||
: "group";
|
||||
return (
|
||||
<LoadingScreen
|
||||
message={`Loading ${passportType} passport...`}
|
||||
/>
|
||||
);
|
||||
const passportType = subdomainInfo.isCreatorPassport ? "creator" : "group";
|
||||
return <LoadingScreen message={`Loading ${passportType} passport...`} />;
|
||||
}
|
||||
|
||||
// Error loading passport
|
||||
|
|
|
|||
12
vercel.json
12
vercel.json
|
|
@ -47,8 +47,16 @@
|
|||
}
|
||||
],
|
||||
"rewrites": [
|
||||
{ "source": "/:path(.*)", "has": [{ "type": "host", "value": "*.aethex.me" }], "destination": "/index.html" },
|
||||
{ "source": "/:path(.*)", "has": [{ "type": "host", "value": "*.aethex.space" }], "destination": "/index.html" },
|
||||
{
|
||||
"source": "/:path(.*)",
|
||||
"has": [{ "type": "host", "value": "*.aethex.me" }],
|
||||
"destination": "/index.html"
|
||||
},
|
||||
{
|
||||
"source": "/:path(.*)",
|
||||
"has": [{ "type": "host", "value": "*.aethex.space" }],
|
||||
"destination": "/index.html"
|
||||
},
|
||||
{ "source": "/", "destination": "/index.html" },
|
||||
{ "source": "/login", "destination": "/index.html" },
|
||||
{ "source": "/login/:path*", "destination": "/index.html" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue