mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
feat: rename file
This commit is contained in:
parent
bfb8bc71ae
commit
edb41cf37d
@ -60,7 +60,7 @@ const CollaboratorListContainer = styled('div')(({ theme }) => ({
|
|||||||
fontSize: theme.typography.body2.fontSize,
|
fontSize: theme.typography.body2.fontSize,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const Collaborators: FC<CollaboratorListProps> = ({ users }) => {
|
const CollaboratorList: FC<CollaboratorListProps> = ({ users }) => {
|
||||||
return (
|
return (
|
||||||
<CollaboratorListContainer>
|
<CollaboratorListContainer>
|
||||||
<span className='description'>Collaborators</span>
|
<span className='description'>Collaborators</span>
|
||||||
@ -84,7 +84,7 @@ type Props = {
|
|||||||
collaborators: IFeatureToggle['collaborators'];
|
collaborators: IFeatureToggle['collaborators'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Contributors: FC<Props> = ({ collaborators }) => {
|
export const Collaborators: FC<Props> = ({ collaborators }) => {
|
||||||
if (!collaborators || collaborators.users.length === 0) {
|
if (!collaborators || collaborators.users.length === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ export const Contributors: FC<Props> = ({ collaborators }) => {
|
|||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<LastModifiedBy {...lastModifiedBy} />
|
<LastModifiedBy {...lastModifiedBy} />
|
||||||
<Collaborators users={collaborators.users} />
|
<CollaboratorList users={collaborators.users} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
};
|
};
|
@ -50,7 +50,7 @@ import copy from 'copy-to-clipboard';
|
|||||||
import useToast from 'hooks/useToast';
|
import useToast from 'hooks/useToast';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
import { useUiFlag } from 'hooks/useUiFlag';
|
||||||
import type { IFeatureToggle } from 'interfaces/featureToggle';
|
import type { IFeatureToggle } from 'interfaces/featureToggle';
|
||||||
import { Contributors as Collaborators } from './Contributors';
|
import { Collaborators } from './Collaborators';
|
||||||
|
|
||||||
const StyledHeader = styled('div')(({ theme }) => ({
|
const StyledHeader = styled('div')(({ theme }) => ({
|
||||||
backgroundColor: theme.palette.background.paper,
|
backgroundColor: theme.palette.background.paper,
|
||||||
|
Loading…
Reference in New Issue
Block a user