Skip to content

Commit

Permalink
Style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cznrhubarb committed Feb 26, 2024
1 parent b93c983 commit 2d5d6f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/social/pages/CommunityPost/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import React from 'react';
import PropTypes from 'prop-types';
import { useNavigate } from 'react-router-dom';

import { PrimaryButton, ButtonGroup } from '~/core/components/Button';
import { PrimaryButton } from '~/core/components/Button';
import useUser from '~/core/hooks/useUser';
import { isCoach } from '~/helpers/permissions';
import withSDK from '~/core/hocs/withSDK';
import CommunityInfo from '~/social/components/CommunityInfo';
import Post from '~/social/components/post/Post';
import { useConfig } from '~/social/providers/ConfigProvider';

import { Wrapper } from './styles';
import { Wrapper, NavButtonGroup } from './styles';

const CommunityPost = ({
currentUserId,
Expand Down Expand Up @@ -40,7 +40,7 @@ const CommunityPost = ({

{
isCoach(currentUser) &&
<ButtonGroup isFullWidth>
<NavButtonGroup isFullWidth>
<PrimaryButton
onClick={() => onOlderPost(communityId, postId)}
>
Expand All @@ -51,7 +51,7 @@ const CommunityPost = ({
>
Newer &gt;
</PrimaryButton>
</ButtonGroup>
</NavButtonGroup>
}

<Post
Expand Down
5 changes: 5 additions & 0 deletions src/social/pages/CommunityPost/styles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import styled from 'styled-components';
import { ButtonGroup } from '~/core/components/Button';

export const Wrapper = styled.div`
height: 100%;
max-width: 695px;
overflow-y: auto;
`;

export const NavButtonGroup = styled(ButtonGroup)`
margin-bottom: 12px;
`;

0 comments on commit 2d5d6f2

Please sign in to comment.