Skip to content

Commit

Permalink
Remove team fake door (#1937)
Browse files Browse the repository at this point in the history
* remove fake door

* lingui extract

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Michael Yankelev <12774278+FSM1@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 11, 2022
1 parent 43f2177 commit 542b3a4
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 156 deletions.
78 changes: 0 additions & 78 deletions packages/files-ui/src/Components/Elements/TeamModal.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions packages/files-ui/src/Components/FilesRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export const ROUTE_LINKS = {
const adjustedRawCurrentPath = !rawCurrentPath ? "/" : rawCurrentPath
return `/shared/${bucketId}${adjustedRawCurrentPath}`
},
DiscordInvite: "https://discord.gg/zAEY37fNb2",
TeamSignup: "https://shrl.ink/cgQy"
DiscordInvite: "https://discord.gg/zAEY37fNb2"
}

export const permissionPath = (permission: NonceResponsePermission) => permission === "read" ? "read" : "edit"
Expand Down
16 changes: 0 additions & 16 deletions packages/files-ui/src/Components/Layouts/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Trans } from "@lingui/macro"
import { useThresholdKey } from "../../Contexts/ThresholdKeyContext"
import { CSFTheme } from "../../Themes/types"
import { useFilesApi } from "../../Contexts/FilesApiContext"
import TeamModal from "../Elements/TeamModal"
import NotificationsDropdown from "../Elements/Notifications/NotificationsDropdown"

const useStyles = makeStyles(
Expand Down Expand Up @@ -144,16 +143,11 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => {
const { isLoggedIn, secured } = useFilesApi()
const { publicKey, isNewDevice, shouldInitializeAccount } = useThresholdKey()
const [searchActive, setSearchActive] = useState(false)
const [isTeamModalOpen, setIsTeamModalOpen] = useState(false)

const onReportBugClick = useCallback(() => {
window.open(ROUTE_LINKS.DiscordInvite, "_blank")
}, [])

const onStartATeamClick = useCallback(() => {
setIsTeamModalOpen(true)
}, [])

return (
<header
className={clsx(classes.root, {
Expand Down Expand Up @@ -190,15 +184,6 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => {
>
<Trans>Report a bug</Trans>
</Button>
<Button
data-posthog="Start-a-team"
data-cy="button-start-team"
variant="tertiary"
size="small"
onClick={onStartATeamClick}
>
<Trans>Start a team</Trans>
</Button>
</section>
<section>
<NotificationsDropdown />
Expand Down Expand Up @@ -249,7 +234,6 @@ const AppHeader = ({ navOpen, setNavOpen }: IAppHeader) => {
}
</>
)}
{isTeamModalOpen && <TeamModal onHide={() => setIsTeamModalOpen(false)}/>}
</header>
)
}
Expand Down
12 changes: 0 additions & 12 deletions packages/files-ui/src/locales/de/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ 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</1>. 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</1>. Speichern Sie ihn an einem sicheren Ort!"

msgid "A better sharing experience is coming soon."
msgstr "Ein besseres Teilen-Erlebnis ist in Vorbereitung."

msgid "A file with the same name already exists"
msgstr "Es existiert bereits eine Datei mit demselben Namen"

Expand Down Expand Up @@ -886,9 +883,6 @@ msgstr "Mit einem anderen Konto anmelden"
msgid "Sign in/up to access the shared folder"
msgstr ""

msgid "Sign me up!"
msgstr ""

msgid "Sign-in methods"
msgstr "Anmeldemethoden"

Expand Down Expand Up @@ -919,9 +913,6 @@ msgstr ""
msgid "Start Upload"
msgstr "Hochladen starten"

msgid "Start a team"
msgstr ""

msgid "Stored by miner"
msgstr ""

Expand All @@ -943,9 +934,6 @@ msgstr ""
msgid "System maintenance is scheduled to start at {0}. The system will be unavailable."
msgstr ""

msgid "Teams"
msgstr ""

msgid "Technical"
msgstr "Technisch"

Expand Down
12 changes: 0 additions & 12 deletions packages/files-ui/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ msgstr "<0>{planStorageCapacity}</0> of storage"
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</1>. 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</1>. 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"

Expand Down Expand Up @@ -889,9 +886,6 @@ msgstr "Sign in with a different account"
msgid "Sign in/up to access the shared folder"
msgstr "Sign in/up to access the shared folder"

msgid "Sign me up!"
msgstr "Sign me up!"

msgid "Sign-in methods"
msgstr "Sign-in methods"

Expand Down Expand Up @@ -922,9 +916,6 @@ msgstr "Standard plan"
msgid "Start Upload"
msgstr "Start Upload"

msgid "Start a team"
msgstr "Start a team"

msgid "Stored by miner"
msgstr "Stored by miner"

Expand All @@ -946,9 +937,6 @@ msgstr "Switch to Free plan"
msgid "System maintenance is scheduled to start at {0}. The system will be unavailable."
msgstr "System maintenance is scheduled to start at {0}. The system will be unavailable."

msgid "Teams"
msgstr "Teams"

msgid "Technical"
msgstr "Technical"

Expand Down
12 changes: 0 additions & 12 deletions packages/files-ui/src/locales/es/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ 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</1>. 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"

Expand Down Expand Up @@ -890,9 +887,6 @@ msgstr "Inicie sesión con una cuenta diferente"
msgid "Sign in/up to access the shared folder"
msgstr ""

msgid "Sign me up!"
msgstr ""

msgid "Sign-in methods"
msgstr "Métodos de inicio de sesión"

Expand Down Expand Up @@ -923,9 +917,6 @@ msgstr ""
msgid "Start Upload"
msgstr "Iniciar la subida"

msgid "Start a team"
msgstr ""

msgid "Stored by miner"
msgstr "Almacenado por el minero"

Expand All @@ -947,9 +938,6 @@ msgstr ""
msgid "System maintenance is scheduled to start at {0}. The system will be unavailable."
msgstr ""

msgid "Teams"
msgstr ""

msgid "Technical"
msgstr "Técnico"

Expand Down
12 changes: 0 additions & 12 deletions packages/files-ui/src/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ msgstr "<0>{planStorageCapacity}</0> de stockage"
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</1>. 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</1>. Gardez-la dans un endroit sûr !"

msgid "A better sharing experience is coming soon."
msgstr "Une meilleure expérience de partage sera bientôt disponible."

msgid "A file with the same name already exists"
msgstr "Un fichier avec ce nom existe déjà"

Expand Down Expand Up @@ -890,9 +887,6 @@ msgstr "Se connecter avec un autre compte"
msgid "Sign in/up to access the shared folder"
msgstr "Se connecter/s'inscrire pour accéder au dossier partagé"

msgid "Sign me up!"
msgstr "S'inscrire !"

msgid "Sign-in methods"
msgstr "Méthodes de connexion"

Expand Down Expand Up @@ -923,9 +917,6 @@ msgstr "Formule standard"
msgid "Start Upload"
msgstr "Démarrer le téléversement"

msgid "Start a team"
msgstr "Créer une équipe"

msgid "Stored by miner"
msgstr "Sauvegardé par le mineur"

Expand All @@ -947,9 +938,6 @@ msgstr "Passer à la formule gratuite"
msgid "System maintenance is scheduled to start at {0}. The system will be unavailable."
msgstr "Une maintenance du système est prévue pour démarrer à {0}. Le système sera indisponible."

msgid "Teams"
msgstr "Équipes"

msgid "Technical"
msgstr "Technique"

Expand Down
12 changes: 0 additions & 12 deletions packages/files-ui/src/locales/no/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ 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</1>. Save it somewhere safe!"
msgstr ""

msgid "A better sharing experience is coming soon."
msgstr ""

msgid "A file with the same name already exists"
msgstr ""

Expand Down Expand Up @@ -886,9 +883,6 @@ msgstr "Logg inn med en annen konto"
msgid "Sign in/up to access the shared folder"
msgstr ""

msgid "Sign me up!"
msgstr ""

msgid "Sign-in methods"
msgstr "Innloggingsmetoder"

Expand Down Expand Up @@ -919,9 +913,6 @@ msgstr ""
msgid "Start Upload"
msgstr ""

msgid "Start a team"
msgstr ""

msgid "Stored by miner"
msgstr ""

Expand All @@ -943,9 +934,6 @@ msgstr ""
msgid "System maintenance is scheduled to start at {0}. The system will be unavailable."
msgstr ""

msgid "Teams"
msgstr ""

msgid "Technical"
msgstr "Teknisk"

Expand Down

0 comments on commit 542b3a4

Please sign in to comment.