Skip to content

Commit

Permalink
Merge pull request #5 from DevlinRocha/settings-sidebar
Browse files Browse the repository at this point in the history
Created dividers and styled text/font
  • Loading branch information
DevlinRocha authored Jan 6, 2022
2 parents c4356df + c5731b4 commit 931590a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/userSettings/SettingsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export default function SettingsSidebar() {
</UserProfile>
</SettingsList>

<Divider />

<SettingsList>
<LogOut
onClick={() => dispatch(setLogoutConfirmOpen(!logoutConfirmOpen))}
Expand All @@ -47,6 +49,8 @@ export default function SettingsSidebar() {
</LogOut>
</SettingsList>

<Divider />

<SocialLinks>
<SocialLink href="https://twitter.com/DevlinRocha" target="_blank">
<StyledImage src={twitterIcon} width={16} height={16} />
Expand Down Expand Up @@ -83,11 +87,11 @@ const SettingsList = tw.ol`
`;

const ListHeading = tw.h3`
px-2.5 pb-1.5
px-2.5 pb-1.5 text-xs font-bold
`;

const ListItem = tw.li`
px-2.5 py-1.5 mb-0.5 rounded-md cursor-pointer
px-2.5 py-1.5 mb-0.5 font-medium rounded-md cursor-pointer
hover:bg-gray-200
`;

Expand All @@ -97,6 +101,10 @@ const MyAccount = tw(ListItem)`
const UserProfile = tw(ListItem)`
`;

const Divider = tw.div`
h-px mx-2.5 my-2 bg-gray-200
`;

const LogOut = tw(ListItem)`
text-red-500
`;
Expand Down

1 comment on commit 931590a

@vercel
Copy link

@vercel vercel bot commented on 931590a Jan 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please # to comment.