-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d000c6b
commit 2c061ce
Showing
107 changed files
with
2,562 additions
and
696 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
src/components/common/Extensions/NotificationBanner/CopyUrl.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/components/frame/v5/pages/MembersPage/AllMembersPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React, { FC } from 'react'; | ||
|
||
import { useColonyContext } from '~hooks'; | ||
import { useCopyToClipboard } from '~hooks/useCopyToClipboard'; | ||
import { formatText } from '~utils/intl'; | ||
|
||
import MembersTabContent from './partials/MembersTabContent'; | ||
import { useMembersPage } from './hooks'; | ||
|
||
const AllMembersPage: FC = () => { | ||
const { membersList, loadingMembers, hasMoreMembers, loadMoreMembers } = | ||
useMembersPage(); | ||
const { handleClipboardCopy } = useCopyToClipboard(); | ||
const { colony } = useColonyContext(); | ||
|
||
const { name } = colony || {}; | ||
const colonyURL = `${window.location.origin}/${name}`; | ||
|
||
return ( | ||
<MembersTabContent | ||
items={membersList} | ||
isLoading={loadingMembers} | ||
loadMoreButtonProps={ | ||
hasMoreMembers | ||
? { | ||
onClick: loadMoreMembers, | ||
} | ||
: undefined | ||
} | ||
withSimpleCards | ||
emptyContentProps={{ | ||
buttonText: { id: 'members.subnav.invite' }, | ||
onClick: () => handleClipboardCopy(colonyURL), | ||
title: formatText({ id: 'membersPage.followers.emptyTitle' }) || '', | ||
description: | ||
formatText({ | ||
id: 'membersPage.followers.emptyDescription', | ||
}) || '', | ||
icon: 'smiley-meh', | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default AllMembersPage; |
52 changes: 52 additions & 0 deletions
52
src/components/frame/v5/pages/MembersPage/ContributorsPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React, { FC } from 'react'; | ||
|
||
import { formatText } from '~utils/intl'; | ||
import { useCopyToClipboard } from '~hooks/useCopyToClipboard'; | ||
import { useColonyContext } from '~hooks'; | ||
import TeamReputationSummary from '~v5/common/TeamReputationSummary'; | ||
|
||
import MembersTabContent from './partials/MembersTabContent'; | ||
import { useMembersPage } from './hooks'; | ||
|
||
const ContributorsPage: FC = () => { | ||
const { | ||
contributorsList, | ||
loadingContributors, | ||
hasMoreContributors, | ||
loadMoreContributors, | ||
} = useMembersPage(); | ||
const { handleClipboardCopy } = useCopyToClipboard(); | ||
const { colony } = useColonyContext(); | ||
|
||
const { name } = colony || {}; | ||
const colonyURL = `${window.location.origin}/${name}`; | ||
|
||
return ( | ||
<MembersTabContent | ||
items={contributorsList} | ||
isLoading={loadingContributors} | ||
loadMoreButtonProps={ | ||
hasMoreContributors | ||
? { | ||
onClick: loadMoreContributors, | ||
} | ||
: undefined | ||
} | ||
contentClassName="flex-col-reverse sm:flex-row" | ||
emptyContentProps={{ | ||
buttonText: { id: 'members.subnav.invite' }, | ||
onClick: () => handleClipboardCopy(colonyURL), | ||
title: formatText({ id: 'membersPage.contributors.emptyTitle' }) || '', | ||
description: | ||
formatText({ | ||
id: 'membersPage.contributors.emptyDescription', | ||
}) || '', | ||
icon: 'smiley-meh', | ||
}} | ||
> | ||
<TeamReputationSummary className="sm:max-w-[14.375rem]" /> | ||
</MembersTabContent> | ||
); | ||
}; | ||
|
||
export default ContributorsPage; |
Oops, something went wrong.