mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
feat(ios): hidden version variant
This commit is contained in:
@@ -9,12 +9,21 @@ export const AboutGroup = () => {
|
|||||||
return (
|
return (
|
||||||
<SettingGroup title={t['com.affine.mobile.setting.about.title']()}>
|
<SettingGroup title={t['com.affine.mobile.setting.about.title']()}>
|
||||||
<RowLayout label={t['com.affine.mobile.setting.about.appVersion']()}>
|
<RowLayout label={t['com.affine.mobile.setting.about.appVersion']()}>
|
||||||
{BUILD_CONFIG.appVersion}
|
{BUILD_CONFIG.isIOS
|
||||||
|
? hiddenVersionVariant(BUILD_CONFIG.appVersion)
|
||||||
|
: BUILD_CONFIG.appVersion}
|
||||||
</RowLayout>
|
</RowLayout>
|
||||||
|
|
||||||
<RowLayout label={t['com.affine.mobile.setting.about.editorVersion']()}>
|
<RowLayout label={t['com.affine.mobile.setting.about.editorVersion']()}>
|
||||||
{BUILD_CONFIG.editorVersion}
|
{BUILD_CONFIG.isIOS
|
||||||
|
? hiddenVersionVariant(BUILD_CONFIG.editorVersion)
|
||||||
|
: BUILD_CONFIG.editorVersion}
|
||||||
</RowLayout>
|
</RowLayout>
|
||||||
</SettingGroup>
|
</SettingGroup>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 0.23.0-beta.1 -> 0.23.0
|
||||||
|
function hiddenVersionVariant(version: string) {
|
||||||
|
return version.replace(/(\d+\.\d+\.\d+)(.*)/, '$1');
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user