From 02b73d7d3009e32f12da7984153de51a0b5d3813 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Thu, 23 Sep 2021 15:19:22 +0200 Subject: [PATCH 1/7] wip --- .../common-components/src/Button/Button.tsx | 26 ++++++- .../common-theme/src/Defaults/ThemeConfig.ts | 2 +- .../src/Components/Layouts/AppHeader.tsx | 29 ++++++- .../src/Components/Layouts/AppNav.tsx | 78 +++++++------------ 4 files changed, 76 insertions(+), 59 deletions(-) diff --git a/packages/common-components/src/Button/Button.tsx b/packages/common-components/src/Button/Button.tsx index 3717ec36d4..48700a6de0 100644 --- a/packages/common-components/src/Button/Button.tsx +++ b/packages/common-components/src/Button/Button.tsx @@ -7,7 +7,6 @@ import { Typography } from "../Typography" const useStyles = makeStyles( ({ constants, typography, animation, palette, overrides }: ITheme) => createStyles({ - // JSS in CSS goes here root: { ...typography.button, borderRadius: `${constants.generalUnit / 4}px`, @@ -110,6 +109,29 @@ const useStyles = makeStyles( }, ...overrides?.Button?.variants?.secondary?.root }, + tertiary: { + backgroundColor: palette.additional["gray"][3], + color: palette.common.black.main, + "& svg": { + fill: palette.common.white.main + }, + "&:hover": { + backgroundColor: palette.primary.main, + color: palette.common.white.main, + ...overrides?.Button?.variants?.secondary?.hover + }, + "&:focus": { + backgroundColor: palette.primary.main, + color: palette.common.white.main, + ...overrides?.Button?.variants?.secondary?.focus + }, + "&:active": { + backgroundColor: palette.primary.main, + color: palette.common.white.main, + ...overrides?.Button?.variants?.secondary?.active + }, + ...overrides?.Button?.variants?.secondary?.root + }, outline: { color: palette.additional["gray"][8], backgroundColor: palette.common?.white.main, @@ -271,7 +293,7 @@ interface IButtonProps extends Omit { className?: string children?: ReactNode | ReactNode[] fullsize?: boolean - variant?: "link" | "primary" | "secondary" | "outline" | "dashed" | "danger" + variant?: "link" | "primary" | "secondary" |"tertiary" | "outline" | "dashed" | "danger" iconButton?: boolean size?: "large" | "medium" | "small" type?: "button" | "submit" | "reset" diff --git a/packages/common-theme/src/Defaults/ThemeConfig.ts b/packages/common-theme/src/Defaults/ThemeConfig.ts index ec5fdc1e23..86acc99a74 100644 --- a/packages/common-theme/src/Defaults/ThemeConfig.ts +++ b/packages/common-theme/src/Defaults/ThemeConfig.ts @@ -169,7 +169,7 @@ const DefaultThemeConfig: IThemeConfig = { }, button: { ...defaultFontStyles, - fontWeight: defaultFontWeights.regular, + fontWeight: defaultFontWeights.semibold, fontSize: 14, lineHeight: "22px" }, diff --git a/packages/files-ui/src/Components/Layouts/AppHeader.tsx b/packages/files-ui/src/Components/Layouts/AppHeader.tsx index 8bc1919f4c..6568e42aa9 100644 --- a/packages/files-ui/src/Components/Layouts/AppHeader.tsx +++ b/packages/files-ui/src/Components/Layouts/AppHeader.tsx @@ -8,7 +8,8 @@ import { HamburgerMenu, MenuDropdown, PowerDownSvg, - useHistory + useHistory, + Button } from "@chainsafe/common-components" import { ROUTE_LINKS } from "../FilesRoutes" import SearchModule from "../Modules/SearchModule" @@ -99,9 +100,7 @@ const useStyles = makeStyles( justifyContent: "flex-end", alignItems: "center", flexDirection: "row", - [breakpoints.up("md")]: { - marginLeft: constants.accountControlsPadding - }, + "& > *:first-child": { marginRight: constants.generalUnit * 2 } @@ -142,6 +141,14 @@ const useStyles = makeStyles( }, title : { marginLeft: constants.generalUnit + }, + buttonsSection: { + display: "flex", + margin: `0 ${constants.generalUnit * 2}px`, + + "& button" : { + height: constants.generalUnit * 4 + } } }) } @@ -171,6 +178,10 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => { }, [logout, removeUser, history]) + const collectFeedback = () => { + window.open(ROUTE_LINKS.DiscordInvite, "_blank") + } + return (
{ setSearchActive={setSearchActive} /> +
+ +
void } -const AppNav: React.FC = ({ navOpen, setNavOpen }: IAppNav) => { +const AppNav = ({ navOpen, setNavOpen }: IAppNav) => { const { desktop } = useThemeSwitcher() const classes = useStyles() - const { storageSummary } = useFiles() - const { isLoggedIn, secured } = useFilesApi() const { publicKey, isNewDevice, shouldInitializeAccount, logout } = useThresholdKey() - const { removeUser } = useUser() const signOut = useCallback(() => { @@ -236,19 +226,15 @@ const AppNav: React.FC = ({ navOpen, setNavOpen }: IAppNav) => { } }, [desktop, navOpen, setNavOpen]) - const collectFeedback = () => { - window.open(ROUTE_LINKS.DiscordInvite, "_blank") - } - return (
@@ -349,37 +335,25 @@ const AppNav: React.FC = ({ navOpen, setNavOpen }: IAppNav) => {
{desktop && ( -
- { - storageSummary && ( - <> - {`${formatBytes(storageSummary.used_storage, 2)} of ${formatBytes( - storageSummary.total_storage, 2 - )} used`} - - - ) +
+ {storageSummary && ( + <> + {`${formatBytes(storageSummary.used_storage, 2)} of ${formatBytes( + storageSummary.total_storage, 2 + )} used`} + + + ) } -
)} {!desktop && ( From cd592ea1add6d5dbf05b03a41604dcdeecf4d246 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 23 Sep 2021 13:24:45 +0000 Subject: [PATCH 2/7] lingui extract --- packages/files-ui/src/locales/de/messages.po | 6 +++--- packages/files-ui/src/locales/en/messages.po | 6 +++--- packages/files-ui/src/locales/es/messages.po | 6 +++--- packages/files-ui/src/locales/fr/messages.po | 6 +++--- packages/files-ui/src/locales/no/messages.po | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/files-ui/src/locales/de/messages.po b/packages/files-ui/src/locales/de/messages.po index a341ad49fe..d17eddc4d1 100644 --- a/packages/files-ui/src/locales/de/messages.po +++ b/packages/files-ui/src/locales/de/messages.po @@ -313,9 +313,6 @@ msgstr "" msgid "Go back" msgstr "Zurück" -msgid "Got an issue?" -msgstr "" - msgid "Got it" msgstr "" @@ -541,6 +538,9 @@ msgstr "" msgid "Report a File" msgstr "" +msgid "Report a bug" +msgstr "" + msgid "Requested from" msgstr "Angefordert von" diff --git a/packages/files-ui/src/locales/en/messages.po b/packages/files-ui/src/locales/en/messages.po index 56943b200a..8f39a31df9 100644 --- a/packages/files-ui/src/locales/en/messages.po +++ b/packages/files-ui/src/locales/en/messages.po @@ -316,9 +316,6 @@ msgstr "Give view-only permission to:" msgid "Go back" msgstr "Go back" -msgid "Got an issue?" -msgstr "Got an issue?" - msgid "Got it" msgstr "Got it" @@ -544,6 +541,9 @@ msgstr "Report" msgid "Report a File" msgstr "Report a File" +msgid "Report a bug" +msgstr "Report a bug" + msgid "Requested from" msgstr "Requested from" diff --git a/packages/files-ui/src/locales/es/messages.po b/packages/files-ui/src/locales/es/messages.po index 5085ef43a5..077a027800 100644 --- a/packages/files-ui/src/locales/es/messages.po +++ b/packages/files-ui/src/locales/es/messages.po @@ -317,9 +317,6 @@ msgstr "" msgid "Go back" msgstr "Regresar" -msgid "Got an issue?" -msgstr "" - msgid "Got it" msgstr "" @@ -545,6 +542,9 @@ msgstr "" msgid "Report a File" msgstr "" +msgid "Report a bug" +msgstr "" + msgid "Requested from" msgstr "Solicitado a" diff --git a/packages/files-ui/src/locales/fr/messages.po b/packages/files-ui/src/locales/fr/messages.po index a7b471313f..e1a5b4fe28 100644 --- a/packages/files-ui/src/locales/fr/messages.po +++ b/packages/files-ui/src/locales/fr/messages.po @@ -317,9 +317,6 @@ msgstr "Donner l’accès en lecture seule à :" msgid "Go back" msgstr "Retour" -msgid "Got an issue?" -msgstr "Vous avez un problème ?" - msgid "Got it" msgstr "Compris" @@ -545,6 +542,9 @@ msgstr "Signaler" msgid "Report a File" msgstr "Signaler un fichier" +msgid "Report a bug" +msgstr "" + msgid "Requested from" msgstr "Envoyé par" diff --git a/packages/files-ui/src/locales/no/messages.po b/packages/files-ui/src/locales/no/messages.po index 8592d2dd37..aea433e161 100644 --- a/packages/files-ui/src/locales/no/messages.po +++ b/packages/files-ui/src/locales/no/messages.po @@ -313,9 +313,6 @@ msgstr "" msgid "Go back" msgstr "Tilbake" -msgid "Got an issue?" -msgstr "" - msgid "Got it" msgstr "" @@ -541,6 +538,9 @@ msgstr "" msgid "Report a File" msgstr "" +msgid "Report a bug" +msgstr "" + msgid "Requested from" msgstr "Forespurt fra" From b73e899e5270e27a5706bca3447c3d8d25f20fa9 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan Date: Mon, 27 Sep 2021 14:53:33 +0200 Subject: [PATCH 3/7] center and add posthog --- .eslintrc.json | 2 +- .../files-ui/src/Components/Layouts/AppHeader.tsx | 10 +++++++--- packages/files-ui/src/Contexts/PosthogContext.tsx | 12 +++++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 210af778d3..d046b33919 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,7 +25,7 @@ "rules": { "comma-spacing": ["error", { "before": false, "after": true }], "cypress/no-pause": "error", - "indent": ["error", 2], + "@typescript-eslint/indent": ["error", 2], "linebreak-style": ["error", "unix"], "quotes": ["error", "double"], "semi": ["error", "never"], diff --git a/packages/files-ui/src/Components/Layouts/AppHeader.tsx b/packages/files-ui/src/Components/Layouts/AppHeader.tsx index 6568e42aa9..3e8fe5377f 100644 --- a/packages/files-ui/src/Components/Layouts/AppHeader.tsx +++ b/packages/files-ui/src/Components/Layouts/AppHeader.tsx @@ -18,6 +18,7 @@ import { useThresholdKey } from "../../Contexts/ThresholdKeyContext" import { CSFTheme } from "../../Themes/types" import { useUser } from "../../Contexts/UserContext" import { useFilesApi } from "../../Contexts/FilesApiContext" +import { usePosthog } from "../../Contexts/PosthogContext" const useStyles = makeStyles( ({ palette, animation, breakpoints, constants, zIndex }: CSFTheme) => { @@ -144,6 +145,7 @@ const useStyles = makeStyles( }, buttonsSection: { display: "flex", + alignItems: "center", margin: `0 ${constants.generalUnit * 2}px`, "& button" : { @@ -167,6 +169,7 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => { const { getProfileTitle, removeUser } = useUser() const [searchActive, setSearchActive] = useState(false) const { history } = useHistory() + const posthog = usePosthog() const signOut = useCallback(async () => { logout() @@ -178,9 +181,10 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => { }, [logout, removeUser, history]) - const collectFeedback = () => { + const onReportBugClick = useCallback(() => { + posthog && posthog.capture("Report Bug") window.open(ROUTE_LINKS.DiscordInvite, "_blank") - } + }, [posthog]) return (
{ data-cy="send-feedback-nav" variant="tertiary" size="small" - onClick={collectFeedback} + onClick={onReportBugClick} > Report a bug diff --git a/packages/files-ui/src/Contexts/PosthogContext.tsx b/packages/files-ui/src/Contexts/PosthogContext.tsx index 5e5e359bf6..9f01f49739 100644 --- a/packages/files-ui/src/Contexts/PosthogContext.tsx +++ b/packages/files-ui/src/Contexts/PosthogContext.tsx @@ -173,4 +173,14 @@ function usePageTrack() { }, [pathname, hasOptedIn, posthogInitialized]) } -export { PosthogProvider, usePosthogContext, usePageTrack } \ No newline at end of file +function usePosthog() { + const { hasOptedIn, posthogInitialized } = usePosthogContext() + + if (posthogInitialized && hasOptedIn){ + return posthog + } + + return undefined +} + +export { PosthogProvider, usePosthogContext, usePageTrack, usePosthog } \ No newline at end of file From d8e35a8d4d66d95fc4bd14a639495f8904ccbcbe Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:10:53 +0200 Subject: [PATCH 4/7] Update .eslintrc.json --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index d046b33919..210af778d3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,7 +25,7 @@ "rules": { "comma-spacing": ["error", { "before": false, "after": true }], "cypress/no-pause": "error", - "@typescript-eslint/indent": ["error", 2], + "indent": ["error", 2], "linebreak-style": ["error", "unix"], "quotes": ["error", "double"], "semi": ["error", "never"], From 3c68c687f6da0258d1b9a7d432aeb0646abd1ad7 Mon Sep 17 00:00:00 2001 From: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com> Date: Tue, 28 Sep 2021 13:19:13 +0200 Subject: [PATCH 5/7] Add team feature fake door (#1587) * wip * modal and tracking * use data-posthog instead --- .../src/Components/Elements/TeamModal.tsx | 77 +++++++++++++++++++ .../files-ui/src/Components/FilesRoutes.tsx | 3 +- .../src/Components/Layouts/AppHeader.tsx | 28 +++++-- .../files-ui/src/Contexts/PosthogContext.tsx | 12 +-- 4 files changed, 103 insertions(+), 17 deletions(-) create mode 100644 packages/files-ui/src/Components/Elements/TeamModal.tsx diff --git a/packages/files-ui/src/Components/Elements/TeamModal.tsx b/packages/files-ui/src/Components/Elements/TeamModal.tsx new file mode 100644 index 0000000000..bcc31292e7 --- /dev/null +++ b/packages/files-ui/src/Components/Elements/TeamModal.tsx @@ -0,0 +1,77 @@ +import { Button, Typography } from "@chainsafe/common-components" +import { createStyles, makeStyles } from "@chainsafe/common-theme" +import { Trans } from "@lingui/macro" +import React, { useCallback } from "react" +import { CSFTheme } from "../../Themes/types" +import { ROUTE_LINKS } from "../FilesRoutes" +import CustomModal from "./CustomModal" + +const useStyles = makeStyles( + ({ constants }: CSFTheme) => { + return createStyles({ + root: { + padding: `${constants.generalUnit * 6}px ${constants.generalUnit * 4}px`, + flexDirection: "column", + display: "flex", + alignItems: "center" + }, + title: { + marginBottom: constants.generalUnit * 3 + }, + modalInner: { + maxWidth: "600px !important" + }, + buttonContainer: { + width: "100%" + }, + nextButton: { + margin: "auto", + marginTop: constants.generalUnit * 3 + } + }) + }) + +interface Props { + onHide: () => void +} + +const TeamModal = ({ onHide }: Props) => { + const classes = useStyles() + + const onSignupTeamClick = useCallback(() => { + window.open(ROUTE_LINKS.TeamSignup, "_blank") + onHide() + }, [onHide]) + + return ( + +
+ + Teams + + + A better sharing experience is coming soon. + +
+ +
+
+
+ )} + +export default TeamModal diff --git a/packages/files-ui/src/Components/FilesRoutes.tsx b/packages/files-ui/src/Components/FilesRoutes.tsx index 41c141c346..74b404c6fa 100644 --- a/packages/files-ui/src/Components/FilesRoutes.tsx +++ b/packages/files-ui/src/Components/FilesRoutes.tsx @@ -33,7 +33,8 @@ export const ROUTE_LINKS = { const adjustedRawCurrentPath = !rawCurrentPath ? "/" : rawCurrentPath return `/shared/${bucketId}${adjustedRawCurrentPath}` }, - DiscordInvite: "https://discord.gg/zAEY37fNb2" + DiscordInvite: "https://discord.gg/zAEY37fNb2", + TeamSignup: "https://shrl.ink/cgQy" } export const SETTINGS_PATHS = ["profile", "plan", "security"] as const diff --git a/packages/files-ui/src/Components/Layouts/AppHeader.tsx b/packages/files-ui/src/Components/Layouts/AppHeader.tsx index 3e8fe5377f..0a58868e50 100644 --- a/packages/files-ui/src/Components/Layouts/AppHeader.tsx +++ b/packages/files-ui/src/Components/Layouts/AppHeader.tsx @@ -18,7 +18,7 @@ import { useThresholdKey } from "../../Contexts/ThresholdKeyContext" import { CSFTheme } from "../../Themes/types" import { useUser } from "../../Contexts/UserContext" import { useFilesApi } from "../../Contexts/FilesApiContext" -import { usePosthog } from "../../Contexts/PosthogContext" +import TeamModal from "../Elements/TeamModal" const useStyles = makeStyles( ({ palette, animation, breakpoints, constants, zIndex }: CSFTheme) => { @@ -149,7 +149,11 @@ const useStyles = makeStyles( margin: `0 ${constants.generalUnit * 2}px`, "& button" : { - height: constants.generalUnit * 4 + height: constants.generalUnit * 4, + + "&:not(:first-child)": { + marginLeft: constants.generalUnit * 2 + } } } }) @@ -168,8 +172,8 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => { const { publicKey, isNewDevice, shouldInitializeAccount, logout } = useThresholdKey() const { getProfileTitle, removeUser } = useUser() const [searchActive, setSearchActive] = useState(false) + const [isTeamModalOpen, setIsTeamModalOpen] = useState(false) const { history } = useHistory() - const posthog = usePosthog() const signOut = useCallback(async () => { logout() @@ -182,9 +186,12 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => { }, [logout, removeUser, history]) const onReportBugClick = useCallback(() => { - posthog && posthog.capture("Report Bug") window.open(ROUTE_LINKS.DiscordInvite, "_blank") - }, [posthog]) + }, []) + + const onStartATeamClick = useCallback(() => { + setIsTeamModalOpen(true) + }, []) return (
{
+
{ )} )} + {isTeamModalOpen && setIsTeamModalOpen(false)}/>}
) } diff --git a/packages/files-ui/src/Contexts/PosthogContext.tsx b/packages/files-ui/src/Contexts/PosthogContext.tsx index 9f01f49739..5e5e359bf6 100644 --- a/packages/files-ui/src/Contexts/PosthogContext.tsx +++ b/packages/files-ui/src/Contexts/PosthogContext.tsx @@ -173,14 +173,4 @@ function usePageTrack() { }, [pathname, hasOptedIn, posthogInitialized]) } -function usePosthog() { - const { hasOptedIn, posthogInitialized } = usePosthogContext() - - if (posthogInitialized && hasOptedIn){ - return posthog - } - - return undefined -} - -export { PosthogProvider, usePosthogContext, usePageTrack, usePosthog } \ No newline at end of file +export { PosthogProvider, usePosthogContext, usePageTrack } \ No newline at end of file From ca8b1bec28900119b0897c4aeb9cb7094c61dd65 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 28 Sep 2021 11:21:16 +0000 Subject: [PATCH 6/7] lingui extract --- packages/files-ui/src/locales/de/messages.po | 12 ++++++++++++ packages/files-ui/src/locales/en/messages.po | 12 ++++++++++++ packages/files-ui/src/locales/es/messages.po | 12 ++++++++++++ packages/files-ui/src/locales/fr/messages.po | 12 ++++++++++++ packages/files-ui/src/locales/no/messages.po | 12 ++++++++++++ 5 files changed, 60 insertions(+) diff --git a/packages/files-ui/src/locales/de/messages.po b/packages/files-ui/src/locales/de/messages.po index fa487a6523..9a35b60490 100644 --- a/packages/files-ui/src/locales/de/messages.po +++ b/packages/files-ui/src/locales/de/messages.po @@ -16,6 +16,9 @@ msgstr "" msgid "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" msgstr "Es wird ein Sicherungsgeheimsatz generiert und für Ihr Konto verwendet.<0/>Wir speichern ihn nicht und <1>er kann nur einmal angezeigt werden. Speichern Sie ihn an einem sicheren Ort!" +msgid "A better sharing experience is coming soon." +msgstr "" + msgid "A file with the same name already exists" msgstr "Es existiert bereits eine Datei mit demselben Namen" @@ -637,6 +640,9 @@ msgstr "Anmelden" msgid "Sign in with a different account" msgstr "Mit einem anderen Konto anmelden" +msgid "Sign me up!" +msgstr "" + msgid "Sign-in methods" msgstr "Anmeldemethoden" @@ -661,12 +667,18 @@ msgstr "Es ist etwas schief gelaufen. Wir konnten Ihre Datei nicht hochladen" msgid "Start Upload" msgstr "Hochladen starten" +msgid "Start a team" +msgstr "" + msgid "Storage Plan" msgstr "Speicherplan" msgid "Stored by miner" msgstr "" +msgid "Teams" +msgstr "" + msgid "Technical" msgstr "Technisch" diff --git a/packages/files-ui/src/locales/en/messages.po b/packages/files-ui/src/locales/en/messages.po index 8f39a31df9..d6d753b165 100644 --- a/packages/files-ui/src/locales/en/messages.po +++ b/packages/files-ui/src/locales/en/messages.po @@ -16,6 +16,9 @@ msgstr "" msgid "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" msgstr "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" +msgid "A better sharing experience is coming soon." +msgstr "A better sharing experience is coming soon." + msgid "A file with the same name already exists" msgstr "A file with the same name already exists" @@ -640,6 +643,9 @@ msgstr "Sign in" msgid "Sign in with a different account" msgstr "Sign in with a different account" +msgid "Sign me up!" +msgstr "Sign me up!" + msgid "Sign-in methods" msgstr "Sign-in methods" @@ -664,12 +670,18 @@ msgstr "Something went wrong. We couldn't upload your file" msgid "Start Upload" msgstr "Start Upload" +msgid "Start a team" +msgstr "Start a team" + msgid "Storage Plan" msgstr "Storage Plan" msgid "Stored by miner" msgstr "Stored by miner" +msgid "Teams" +msgstr "Teams" + msgid "Technical" msgstr "Technical" diff --git a/packages/files-ui/src/locales/es/messages.po b/packages/files-ui/src/locales/es/messages.po index 077a027800..e14352407e 100644 --- a/packages/files-ui/src/locales/es/messages.po +++ b/packages/files-ui/src/locales/es/messages.po @@ -17,6 +17,9 @@ msgstr "" msgid "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" msgstr "" +msgid "A better sharing experience is coming soon." +msgstr "" + msgid "A file with the same name already exists" msgstr "Ya existe un archivo con el mismo nombre" @@ -641,6 +644,9 @@ msgstr "Registrarse" msgid "Sign in with a different account" msgstr "Inicie sesión con una cuenta diferente" +msgid "Sign me up!" +msgstr "" + msgid "Sign-in methods" msgstr "Métodos de inicio de sesión" @@ -665,12 +671,18 @@ msgstr "Algo salió mal. No pudimos subir tu archivo" msgid "Start Upload" msgstr "Iniciar la subida" +msgid "Start a team" +msgstr "" + msgid "Storage Plan" msgstr "Plan de almacenamiento" msgid "Stored by miner" msgstr "Almacenado por el minero" +msgid "Teams" +msgstr "" + msgid "Technical" msgstr "Técnico" diff --git a/packages/files-ui/src/locales/fr/messages.po b/packages/files-ui/src/locales/fr/messages.po index 41002191d0..a187a80dbe 100644 --- a/packages/files-ui/src/locales/fr/messages.po +++ b/packages/files-ui/src/locales/fr/messages.po @@ -17,6 +17,9 @@ msgstr "" msgid "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" msgstr "Une phrase secrète de sauvegarde sera générée et utilisé pour ce compte.<0/>Nous ne la sauvergardons pas <1>elle ne peut être affichée qu’une seule fois. Gardez-la dans un endroit sûr !" +msgid "A better sharing experience is coming soon." +msgstr "" + msgid "A file with the same name already exists" msgstr "Un fichier avec ce nom existe déjà" @@ -641,6 +644,9 @@ msgstr "Se connecter" msgid "Sign in with a different account" msgstr "Se connecter avec un autre compte" +msgid "Sign me up!" +msgstr "" + msgid "Sign-in methods" msgstr "Méthodes de connexion" @@ -665,12 +671,18 @@ msgstr "Un problème est survenu. Nous n’avons pas pu téléverser votre fichi msgid "Start Upload" msgstr "Démarrer le téléversement" +msgid "Start a team" +msgstr "" + msgid "Storage Plan" msgstr "Plan de stockage" msgid "Stored by miner" msgstr "Sauvegardé par le mineur" +msgid "Teams" +msgstr "" + msgid "Technical" msgstr "Technique" diff --git a/packages/files-ui/src/locales/no/messages.po b/packages/files-ui/src/locales/no/messages.po index aea433e161..b958ba8d47 100644 --- a/packages/files-ui/src/locales/no/messages.po +++ b/packages/files-ui/src/locales/no/messages.po @@ -16,6 +16,9 @@ msgstr "" msgid "A backup secret phrase will be generated and used for your account.<0/>We do not store it and <1>it can only be displayed once. Save it somewhere safe!" msgstr "" +msgid "A better sharing experience is coming soon." +msgstr "" + msgid "A file with the same name already exists" msgstr "" @@ -637,6 +640,9 @@ msgstr "Logg inn" msgid "Sign in with a different account" msgstr "Logg inn med en annen konto" +msgid "Sign me up!" +msgstr "" + msgid "Sign-in methods" msgstr "Innloggingsmetoder" @@ -661,12 +667,18 @@ msgstr "" msgid "Start Upload" msgstr "" +msgid "Start a team" +msgstr "" + msgid "Storage Plan" msgstr "" msgid "Stored by miner" msgstr "" +msgid "Teams" +msgstr "" + msgid "Technical" msgstr "Teknisk" From 7f3223ce4f45e8589d8d75e457626777eec9e1e2 Mon Sep 17 00:00:00 2001 From: Michael Yankelev Date: Tue, 28 Sep 2021 13:53:07 +0200 Subject: [PATCH 7/7] fix lint --- packages/files-ui/src/Components/Elements/TeamModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/files-ui/src/Components/Elements/TeamModal.tsx b/packages/files-ui/src/Components/Elements/TeamModal.tsx index bcc31292e7..df5acb3abf 100644 --- a/packages/files-ui/src/Components/Elements/TeamModal.tsx +++ b/packages/files-ui/src/Components/Elements/TeamModal.tsx @@ -32,7 +32,7 @@ const useStyles = makeStyles( }) interface Props { - onHide: () => void + onHide: () => void } const TeamModal = ({ onHide }: Props) => {