-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add donmain persona type (#335)
Signed-off-by: laixingyou <[email protected]>
- Loading branch information
1 parent
1e54956
commit 0dac972
Showing
6 changed files
with
500 additions
and
12 deletions.
There are no files selected for viewing
Submodule i18n
updated
4 files
+2 −1 | en/academe.json | |
+5 −2 | en/analyze.json | |
+18 −17 | zh/academe.json | |
+5 −2 | zh/analyze.json |
Binary file not shown.
421 changes: 421 additions & 0 deletions
421
apps/web/src/modules/academe/DataUsageProcess/DataTerms.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React, { useState } from 'react'; | ||
import { useTranslation } from 'next-i18next'; | ||
import Dialog, { Transition } from '@common/components/Dialog'; | ||
import classnames from 'classnames'; | ||
import { Button } from '@oss-compass/ui'; | ||
import DataTerms from './DataTerms'; | ||
|
||
const DataUsageProcess = () => { | ||
const { t } = useTranslation(); | ||
const [open, setOpen] = useState(false); | ||
|
||
return ( | ||
<> | ||
<Dialog | ||
TransitionComponent={Transition} | ||
open={open} | ||
classes={{ | ||
paper: classnames( | ||
'border-2 border-black w-[840px] !max-w-[840px] !rounded-none !m-0 md:w-full md:h-full md:!m-0 md:!min-h-full md:border-none' | ||
), | ||
}} | ||
dialogContent={<DataTerms />} | ||
handleClose={() => { | ||
setOpen(false); | ||
}} | ||
dialogActions={ | ||
<> | ||
<Button | ||
intent="text" | ||
size="sm" | ||
className="mr-2" | ||
onClick={() => { | ||
setOpen(false); | ||
}} | ||
> | ||
{t('common:btn.confirm')} | ||
</Button> | ||
</> | ||
} | ||
/> | ||
<div | ||
className="h-10 cursor-pointer bg-gradient-to-r from-[#72D74F] to-[#27AE65] px-4 text-center text-sm leading-10 text-[#fff]" | ||
onClick={() => { | ||
setOpen(true); | ||
}} | ||
> | ||
<a | ||
// href="mailto:[email protected]" | ||
title="[email protected]" | ||
> | ||
{t('academe:submit_your_application_now')} | ||
</a> | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default DataUsageProcess; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters