Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Jan 19, 2024
1 parent f353b41 commit e3f8e16
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 29 deletions.
2 changes: 2 additions & 0 deletions src/components/centric/selectCommunity/TcSelectCommunity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function TcSelectCommunity() {
text="Continue"
className="secondary"
variant="contained"
sx={{ width: '15rem', padding: '0.5rem' }}
disabled={!activeCommunity}
onClick={handleSelectedCommunity}
/>
Expand All @@ -124,6 +125,7 @@ function TcSelectCommunity() {
<TcButton
startIcon={<BsPlus />}
text="Create"
sx={{ width: '15rem', padding: '0.5rem' }}
variant="outlined"
onClick={() => router.push('/centric/create-new-community')}
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/communitySettings/platform/TcPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function TcPlatform({ platformName = 'Discord' }: TcPlatformProps) {
<TcButton
text="Confirm Changes"
variant="contained"
sx={{ width: '15rem', padding: '0.5rem' }}
onClick={handlePatchCommunity}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function TcPlatformChannelDialog() {
<TcButton
text={'Save Channels'}
variant="contained"
sx={{ width: '15rem', padding: '0.5rem' }}
onClick={() => setOpenDialog(false)}
/>
</div>
Expand Down
19 changes: 19 additions & 0 deletions src/components/global/CustomTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ function CustomTab({
width: '50%',
padding: '0',
},
textTransform: 'none',
borderRadius: '10px 10px 0 0',
padding: '8px 24px',
gap: '10px',
borderBottom: 'none',
'&.Mui-selected': {
background: '#804EE1',
color: 'white',
border: 0,
borderBottom: 'none',
},
'&$selected': {
borderBottom: 'none',
},
'&:not(.Mui-selected)': {
backgroundColor: '#EDEDED',
color: '#222222',
},
selected: {},
}}
/>
))}
Expand Down
1 change: 1 addition & 0 deletions src/pages/centric/create-new-community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function CreateNewCommunity() {
<TcButton
text="Create community"
variant="contained"
sx={{ width: '15rem', padding: '0.5rem' }}
color="secondary"
disabled={!readTermsAndCondition}
onClick={() => handleCreateNewCommunitie()}
Expand Down
1 change: 1 addition & 0 deletions src/pages/centric/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function Index() {
<div className="block">
<TcButton
text={'Log in with Discord'}
sx={{ width: '15rem', padding: '0.5rem' }}
variant="contained"
onClick={() => discordAuthorization()}
/>
Expand Down
1 change: 1 addition & 0 deletions src/pages/centric/tac.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function Tac() {
<TcButton
text={'Continue'}
variant="contained"
sx={{ width: '15rem', padding: '0.5rem' }}
disabled={!acceptPrivacyAndPolicy}
onClick={() => handleAcceptTerms()}
/>
Expand Down
30 changes: 1 addition & 29 deletions src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ export const theme = createTheme({
components: {
MuiButton: {
styleOverrides: {
// sizeMedium: {
// width: '15rem',
// padding: '0.5rem',
// },
root: {
textTransform: 'none',
borderRadius: '4px',
Expand Down Expand Up @@ -109,31 +105,7 @@ export const theme = createTheme({
},
},
MuiTab: {
styleOverrides: {
// root: {
// textTransform: 'none',
// borderRadius: '10px 10px 0 0',
// padding: '8px 24px',
// width: '214px',
// height: '40px',
// gap: '10px',
// borderBottom: 'none',
// '&.Mui-selected': {
// background: '#804EE1',
// color: 'white',
// border: 0,
// borderBottom: 'none',
// },
// '&$selected': {
// borderBottom: 'none',
// },
// '&:not(.Mui-selected)': {
// backgroundColor: '#EDEDED',
// color: '#222222',
// },
// selected: {},
// },
},
styleOverrides: {},
},
},
});
Expand Down

0 comments on commit e3f8e16

Please sign in to comment.