Skip to content

Commit

Permalink
fix annotation avatar color
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 committed Jun 14, 2023
1 parent 1f006e2 commit 7e0bf51
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions packages/client/src/components/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ type UserAvatarProps = AvatarProps & {
};

export const UserAvatar: React.FC<UserAvatarProps> = React.memo(
({ userId, username, small, ...props }) => (
({ userId, username, small, sx, ...props }) => (
<Avatar
sx={
sx={[
small
? {
height: 24,
width: 24,
backgroundColor: getUserColor(userId),
...props.sx,
}
: {
height: 40,
width: 40,
backgroundColor: getUserColor(userId),
...props.sx,
}
}
},
sx,
]}
{...props}
>
{getUserInitials(username)}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"home.teachers": "",
"home.title": "What is Celluloid ?",
"home.tutoriel.description": "Go to Peertube\nChoose a video or upload a new one\nCopy the link to share the video\nCreate your project in Celluloid, copy the video link and go!\nWant to work with others? Share the project code with your partners",
"home.tutoriel.link": "The tutorial is here: <1>https://celluloid.hypotheses.org/1365</1>",
"home.tutoriel.link": "The tutorial is here: <1>https://celluloid.hypotheses.org/560</1>",
"home.tutoriel.prefix": "To discover the application, you can consult the ",
"home.tutoriel.subtitle": "You want to know more or you encounter difficulties?",
"home.tutoriel.suffix": "tutorial ",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"home.teachers": "",
"home.title": "Qu’est-ce que Celluloid ?",
"home.tutoriel.description": "Rendez-vous sur une instance Peertube \nChoisissez une vidéo ou déposez-en une nouvelle dans l’instance\nCopiez le lien de partage de la vidéo\nCréez votre projet dans Celluloid en collant le lien de la vidéo et lancez-vous !\nVous voulez travailler à plusieurs ? Partagez le code du projet avec vos partenaires",
"home.tutoriel.link": "Le tutoriel est ici : <1>https://celluloid.hypotheses.org/1365</1>",
"home.tutoriel.link": "Le tutoriel est ici : <1>https://celluloid.hypotheses.org/560</1>",
"home.tutoriel.prefix": "Vous voulez en savoir plus ou vous rencontrez des difficultés ?",
"home.tutoriel.subtitle": "Vous voulez en savoir plus ou vous rencontrez des difficultés ?",
"home.tutoriel.suffix": "Le tutoriel est ici",
Expand Down
5 changes: 3 additions & 2 deletions packages/client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ export const HomePage: React.FC = () => {
>
<Trans i18nKey={"home.tutoriel.subtitle"}></Trans>
</Typography>

<Typography variant="subtitle1" gutterBottom={true}>
<Trans i18nKey={"home.tutoriel.link"}>
default
<Link
href="https://celluloid.hypotheses.org/1365"
href="https://canevas.hypotheses.org/560"
target="_blank"
rel="noreferrer"
>
https://celluloid.hypotheses.org/1365
https://canevas.hypotheses.org/560
</Link>
</Trans>
</Typography>
Expand Down

0 comments on commit 7e0bf51

Please sign in to comment.