quivr/frontend/app/user/components/Settings/Settings.tsx
Antoine Dewez 8f49a724ce
feat(frontend): design changes on user profile (#2140)
# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
2024-02-03 17:45:05 -08:00

25 lines
672 B
TypeScript

import { InfoDisplayer } from "@/lib/components/ui/InfoDisplayer/InfoDisplayer";
import styles from "./Settings.module.scss";
import { ApiKeyConfig } from "../ApiKeyConfig";
import LanguageSelect from "../LanguageSelect/LanguageSelect";
import { LogoutModal } from "../LogoutModal/LogoutModal";
type InfoDisplayerProps = {
email: string;
};
export const Settings = ({ email }: InfoDisplayerProps): JSX.Element => {
return (
<div className={styles.settings_wrapper}>
<InfoDisplayer label="Email" iconName="email">
<span>{email}</span>
</InfoDisplayer>
<LanguageSelect />
<ApiKeyConfig />
<LogoutModal />
</div>
);
};