diff --git a/frontend/src/components/global-header.jsx b/frontend/src/components/global-header.jsx index f5d43c8..00dc3dd 100644 --- a/frontend/src/components/global-header.jsx +++ b/frontend/src/components/global-header.jsx @@ -6,8 +6,12 @@ const GlobalHeader = () => { const logged = useLoaderData(); return ( <> -
-

SW:LC Rune Builder

+
+ +

+ SW:Lost Centuria Rune Builder +

+ {logged ? ( diff --git a/frontend/src/pages/profile.jsx b/frontend/src/pages/profile.jsx index 1c94377..0384bc6 100644 --- a/frontend/src/pages/profile.jsx +++ b/frontend/src/pages/profile.jsx @@ -7,24 +7,28 @@ const Profile = () => {

Your Builds

    - {builds.map((build) => { - // deserialize the build object - const b = deserializeBuildState(build.build); - return ( -
  • - -

    {b.name}

    -

    Monster: {b.monster.name}

    - -
  • - ); - })} +
); }; +const BuildsList = ({ builds }) => { + return builds.map((build, i) => { + // deserialize the build object + const b = deserializeBuildState(build.build); + return ( +
  • + +

    {b.name}

    +

    Monster: {b.monster.name}

    + +
  • + ); + }); +}; + export default Profile;