Skip to content

Commit ebab45a

Browse files
committed
Remix Ai option
1 parent 16c776a commit ebab45a

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

apps/remix-ide/src/app/tabs/locales/en/remixApp.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@
1515
"remixApp.managePreferences": "Manage Preferences",
1616
"remixApp.savePreferences": "Save Preferences",
1717
"remixApp.declineCookies": "Decline Cookies",
18-
"remixApp.decline": "Decline"
18+
"remixApp.decline": "Decline",
19+
20+
"remixApp.mpOp1Title": "RemixAI",
21+
"remixApp.mpOp1Details": "RemixAI helps by offering code suggestions and improvements",
22+
"remixApp.mpOp1Link": "<a>Learn more about RemixAI Copilot</a>"
1923
}

libs/remix-ui/app/src/lib/remix-app/components/modals/managePreferences.tsx

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,32 @@ const ManagePreferencesDialog = (props: ManagePreferencesDialogProps) => {
2020
const message = () => {
2121
return (
2222
<>
23-
<p>
24-
Manage Preferences
25-
</p>
23+
<div data-id="remixAI" className='justify-content-between align-items-center d-flex'>
24+
<div>
25+
<h6><FormattedMessage id="remixApp.mpOp1Title" /></h6>
26+
<p className='form-check-label'><FormattedMessage id="remixApp.mpOp1Details" /></p>
27+
<p className='mt-1'><FormattedMessage
28+
id="remixApp.mpOp1Link"
29+
values={{
30+
a: (chunks) => (
31+
<a className="text-primary" href="https://matomo.org" target="_blank" rel="noreferrer">
32+
{chunks}
33+
</a>
34+
),
35+
}}
36+
/></p>
37+
</div>
38+
<div>
39+
<button
40+
data-id="remixAIswitch"
41+
id='remixAIswitch'
42+
className="btn text-ai"
43+
onClick={() => {}}
44+
>
45+
<i className="fas fa-toggle-on fa-2xl"></i>
46+
</button>
47+
</div>
48+
</div>
2649
</>
2750
)
2851
}

0 commit comments

Comments
 (0)