Skip to content

Commit 9b83165

Browse files
authored
Add translation toolti (#1234)
1 parent 16a5b75 commit 9b83165

File tree

1 file changed

+19
-14
lines changed
  • django_project/minisass_frontend/src

1 file changed

+19
-14
lines changed

django_project/minisass_frontend/src/App.tsx

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useEffect, useState } from "react";
22
import Routes from "./Routes";
3+
import Tooltip from '@mui/material/Tooltip';
34
import PrivacyConsentModal from "./components/PrivacyConsentModal"
45
import { usePrivacyConsent, CLOSE_PRIVACY_MODAL } from './PrivacyConsentContext';
56

@@ -104,21 +105,25 @@ function App() {
104105
<>
105106
{/* GTranslate wrapper - the widget will be injected here */}
106107
<div className="gtranslate_wrapper"></div>
107-
108108
{/* Translation attribution */}
109-
<div style={{
110-
position: 'fixed',
111-
bottom: '10px',
112-
left: '10px',
113-
fontSize: '0.7rem',
114-
color: '#666',
115-
backgroundColor: 'rgba(255, 255, 255, 0.9)',
116-
padding: '2px 6px',
117-
borderRadius: '3px',
118-
zIndex: 1000
119-
}}>
120-
Translations by GTranslate
121-
</div>
109+
<Tooltip
110+
title="Please be aware that the translations done by this tool are automatic. They are not verified by the miniSASS team and may not be completely accurate."
111+
placement="right-start"
112+
>
113+
<div style={{
114+
position: 'fixed',
115+
bottom: '10px',
116+
left: '10px',
117+
fontSize: '0.7rem',
118+
color: '#666',
119+
backgroundColor: 'rgba(255, 255, 255, 0.9)',
120+
padding: '2px 6px',
121+
borderRadius: '3px',
122+
zIndex: 1000
123+
}}>
124+
Translations by GTranslate
125+
</div>
126+
</Tooltip>
122127

123128
<PrivacyConsentModal
124129
open={state.isPrivacyModalOpen}

0 commit comments

Comments
 (0)