Skip to content

Commit

Permalink
clean up MyProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Oct 1, 2024
1 parent 1a0d324 commit bed84fd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
23 changes: 0 additions & 23 deletions daikoku/javascript/src/components/backoffice/me/MyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,6 @@ export const MyProfile = () => {
const [tab, setTab] = useState('infos');

const { tenant, reloadContext } = useContext(GlobalContext);
const [token, setToken] = useState("");

const [copiedTimeout, setCopiedTimeout] = useState<any>()

const { translate, setLanguage, language, Translation, languages } = useContext(I18nContext);
const { confirm } = useContext(ModalContext);
Expand Down Expand Up @@ -466,12 +463,6 @@ export const MyProfile = () => {
toast.error(user.error)
}
});

return () => {
if (copiedTimeout) {
clearTimeout(copiedTimeout)
}
}
}, []);

const save = (data: any) => {
Expand Down Expand Up @@ -536,16 +527,6 @@ export const MyProfile = () => {
<Translation i18nkey="Security">AccountSecurity</Translation>
</span>
</li>
<li className="nav-item">
<span
className={`nav-link cursor-pointer ${tab === 'cms_cli' ? 'active' : ''}`}
onClick={() => {
setTab('cms_cli')
}}
>
<Translation i18nkey="CMS CLI">CMS CLI</Translation>
</span>
</li>
</ul>
{tab === 'infos' && (
<Form
Expand Down Expand Up @@ -623,10 +604,6 @@ export const MyProfile = () => {
</div>
</div>
)}

{tab === "cms_cli" && <div>
<p>Comming soon</p>
</div>}
</div>
</div>
);
Expand Down
4 changes: 0 additions & 4 deletions daikoku/javascript/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,10 +1411,6 @@
"aggregation.button.subscription.disable.label": "No api keys are present in your team",
"aggregation.button.subscription.active.label": "Subscribe using an existing api key",
"documentation.not.setted.message": "it's seems that this plan has no documentation setted",
"profile.cmscli.reset.title": "CMS CLI",
"profile.cmscli.reset.token": "Reset token",
"profile.cmscli.copy.token": "Copy",
"profile.cmscli.paste.token": "Copied",
"authentication.form.jwtverifier.label": "JWT verfier",
"authentication.form.jwtverifier.sha.size.label": "SHA size",
"authentication.form.jwtverifier.hmacsecret.label": "Hmac secret",
Expand Down
4 changes: 0 additions & 4 deletions daikoku/javascript/src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,10 +1411,6 @@
"aggregation.button.subscription.disable.label": "Aucune clé d'API",
"aggregation.button.subscription.active.label": "Souscrire en étendant une clé d'API existante",
"documentation.not.setted.message": "Il semble qu'aucune documentation ne soit définie pour ce plan",
"profile.cmscli.reset.title": "CMS CLI",
"profile.cmscli.reset.token": "Renouveler le jeton",
"profile.cmscli.copy.token": "Copier",
"profile.cmscli.paste.token": "Copié",
"authentication.form.jwtverifier.label": "JWT verfier",
"authentication.form.jwtverifier.sha.size.label": "SHA size",
"authentication.form.jwtverifier.hmacsecret.label": "Hmac secret",
Expand Down

0 comments on commit bed84fd

Please sign in to comment.