Skip to content

Commit

Permalink
update community settings & hivemind
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Jul 18, 2024
1 parent 2a59a26 commit 72df9c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import {
Alert,
Autocomplete,
Chip,
CircularProgress,
FormControl,
FormHelperText,
FormLabel,
Link,
TextField,
Typography,
} from '@mui/material';
import router from 'next/router';
import React, { useState } from 'react';
Expand Down Expand Up @@ -51,6 +54,11 @@ function TcHivemindNotion({
return (
<>
<div className='flex flex-col items-center justify-between space-y-3'>
<Alert className='flex justify-start w-full rounded-md' severity='info'>
<Typography variant='body2' className='text-left'>
See documentation for how to <Link className='font-bold' color='inherit' href='https://togethercrew.gitbook.io/onboarding/fundamentals/setting-up-hivemind' target='_blank'>integrate Notion to Hivemind</Link>
</Typography>
</Alert>
<FormControl fullWidth>
<FormLabel>Notion Page Id</FormLabel>
<Autocomplete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,11 @@ function TcCommunityPlatforms() {

return (
<div>
<div>
<TcText text='Platforms & Modules' variant='h6' />
<TcText
text='Configure the following by adding/removing platforms and enabling/disabling access settings within each module'
variant='body2'
/>
</div>

<Paper className='rounded-none bg-gray-100 p-4 shadow-none'>
<div className='flex flex-col space-y-3 md:flex-row md:items-center md:space-y-0 md:space-x-3'>
<TcText text='Platforms' variant='h6' fontWeight='bold' />
<TcText
text='Connect platforms to their respective modules'
text='Add/remove platform integrations'
variant='body1'
/>
</div>
Expand Down Expand Up @@ -235,7 +227,7 @@ function TcCommunityPlatforms() {
<div className='flex flex-col space-y-3 md:flex-row md:items-center md:space-y-0 md:space-x-3'>
<TcText text='Modules' variant='h6' fontWeight='bold' />
<TcText
text='Manage the following modules and their access setting'
text='Turn on/off the different modules and give them or remove data access to the Platforms you have integrated'
variant='body1'
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CircularProgress, Paper } from '@mui/material';
import { Alert, CircularProgress, Paper } from '@mui/material';
import moment from 'moment';
import React, { useEffect, useState } from 'react';
import { AiOutlineClose } from 'react-icons/ai';
Expand Down Expand Up @@ -162,6 +162,9 @@ function TcNotionIntegration({
</>
)}
</div>
<Alert severity="info">
To edit pages access, please remove the Notion integration and add it again
</Alert>
</div>
<TcButton
startIcon={<MdDelete />}
Expand Down

0 comments on commit 72df9c7

Please sign in to comment.