Skip to content

Commit

Permalink
move "Back to open roles" copy to the translations file
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed May 6, 2024
1 parent 6614d17 commit e0fcd62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/src/modules/components/TopLayoutCareers.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import AppHeader from 'docs/src/layouts/AppHeader';
import BrandingCssVarsProvider from 'docs/src/BrandingCssVarsProvider';
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';
import { Link } from '@mui/docs/Link';
import { useTranslate } from 'docs/src/modules/utils/i18n';

const StyledDiv = styled('div')(({ theme }) => ({
flex: '1 0 100%',
Expand All @@ -34,6 +35,7 @@ const StyledAppContainer = styled(AppContainer)(({ theme }) => ({
export default function TopLayoutCareers(props) {
const { docs } = props;
const { description, rendered, title } = docs.en;
const t = useTranslate();

return (
<BrandingCssVarsProvider>
Expand All @@ -51,11 +53,10 @@ export default function TopLayoutCareers(props) {
href="/careers/#open-roles"
rel="nofollow"
variant="body2"
sx={{ display: 'flex', gap: 0.5, alignItems: 'center', mb: 2 }}
sx={{ display: 'flex', gap: 0.5, alignItems: 'center', mb: 4 }}
>
<KeyboardArrowLeftIcon fontSize="small" />
{/* eslint-disable-next-line material-ui/no-hardcoded-labels */}
{'Back to open roles'}
{t('backToOpenRoles')}
</Link>
{rendered.map((chunk, index) => {
return <MarkdownElement key={index} renderedMarkdown={chunk} />;
Expand Down
1 change: 1 addition & 0 deletions packages/mui-docs/src/translations/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"toggleSettings": "Toggle settings drawer"
},
"backToTop": "Scroll back to top",
"backToOpenRoles": "Back to open roles",
"blogDescr": "A polished blog page layout. Markdown support is courtesy of markdown-to-jsx.",
"blogTitle": "Blog",
"bundleSize": "Bundle size",
Expand Down

0 comments on commit e0fcd62

Please sign in to comment.