-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release notes url. update detailed changes modal start
- Loading branch information
Showing
13 changed files
with
178 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
38 changes: 38 additions & 0 deletions
38
src/renderer/Presentational/CartridgeUpdate/CartridgeUpdate.tsx
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,38 @@ | ||
import { useTranslation } from 'react-i18next'; | ||
import Linking from '../../Generics/redesign/Link/Linking'; | ||
import alphaBanner from '../../assets/images/artwork/alphaBanner.svg'; | ||
import { | ||
container, | ||
contentContainer, | ||
contentMajorTitle, | ||
contentSection, | ||
contentTitle, | ||
topBanner, | ||
} from './cartridgeUpdate.css'; | ||
|
||
const CartridgeUpdate = ({ message }: { message: string }) => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<div className={container}> | ||
<div className={contentContainer}> | ||
<div className={contentSection}> | ||
<span className={contentMajorTitle}> | ||
{t('Detailed Changes in the Update')} | ||
</span> | ||
<p>{message}</p> | ||
</div> | ||
{/* <div className={contentSection}> | ||
<span className={contentTitle}>{t('ExpectHiccups')}</span> | ||
<p>{t('WorkInProgress')}</p> | ||
<Linking url="#" text={t('JoinDiscord')} underline={false} /> | ||
</div> | ||
<div className={contentSection}> | ||
<span className={contentTitle}>{t('ErrorReportingOn')}</span> | ||
<p>{t('ReportingErrors')}</p> | ||
</div> */} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AlphaBuild; |
45 changes: 45 additions & 0 deletions
45
src/renderer/Presentational/CartridgeUpdate/cartridgeUpdate.css.ts
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,45 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { common } from '../../Generics/redesign/theme.css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
width: 380, | ||
}); | ||
|
||
export const topBanner = style({ | ||
height: 92, | ||
backgroundColor: common.color.pink100, | ||
borderTopLeftRadius: 14, | ||
borderTopRightRadius: 14, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
}); | ||
|
||
export const contentContainer = style({ | ||
padding: '24px 24px 0px 24px', | ||
gap: 24, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
}); | ||
|
||
export const contentSection = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: 8, | ||
fontSize: 13, | ||
fontWeight: 400, | ||
lineHeight: '18px', | ||
letterSpacing: '-0.08px', | ||
}); | ||
|
||
export const contentMajorTitle = style({ | ||
fontWeight: 590, | ||
fontSize: 20, | ||
lineHeight: '24px', | ||
letterSpacing: '-0.4px', | ||
}); | ||
|
||
export const contentTitle = style({ | ||
fontWeight: 590, | ||
}); |
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
32 changes: 32 additions & 0 deletions
32
src/renderer/Presentational/ModalManager/CartridgeUpdateModal.tsx
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,32 @@ | ||
import { Modal } from '../../Generics/redesign/Modal/Modal'; | ||
import electron from '../../electronGlobal'; | ||
import CartridgeUpdate from '../CartridgeUpdate/CartridgeUpdate.js'; | ||
import { modalRoutes } from './modalUtils'; | ||
|
||
type Props = { | ||
modalOnClose: () => void; | ||
}; | ||
|
||
export const CartridgeUpdateModal = ({ modalOnClose }: Props) => { | ||
const buttonSaveLabel = 'I Understand'; | ||
|
||
const modalOnSaveConfig = async () => { | ||
// await electron.getSetHasSeenAlphaModal(true); | ||
console.log('close update changes!'); | ||
modalOnClose(); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
route={modalRoutes.cartridgeUpdate} | ||
modalType="info" | ||
backButtonEnabled={false} | ||
buttonSaveLabel={buttonSaveLabel} | ||
modalOnSaveConfig={modalOnSaveConfig} | ||
modalOnClose={modalOnClose} | ||
modalOnCancel={modalOnClose} | ||
> | ||
<CartridgeUpdate /> | ||
</Modal> | ||
); | ||
}; |
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