Skip to content

Commit

Permalink
Actualize the template
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk committed May 21, 2024
1 parent ac3ab12 commit 511d811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
babelOptions: {
babelrc: false,
configFile: false,
presets: ['@babel/preset-env', '@babel/preset-react'],
presets: ['@babel/preset-env', 'babel-preset-solid'],
},
},
plugins: [
Expand Down
6 changes: 5 additions & 1 deletion src/pages/InitDataPage/InitDataPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ import './InitDataPage.css';
function getUserRows(user) {
return [
{ title: 'id', value: user.id.toString() },
{ title: 'username', value: user.username },
{ title: 'photo_url', value: user.photoUrl },
{ title: 'last_name', value: user.lastName },
{ title: 'first_name', value: user.firstName },
{ title: 'is_bot', value: user.isBot },
{ title: 'is_premium', value: user.isPremium },
{ title: 'language_code', value: user.languageCode },
{ title: 'allows_to_write_to_pm', value: user.allowsWriteToPm },
{ title: 'added_to_attachment_menu', value: user.addedToAttachmentMenu },
];
}

Expand Down Expand Up @@ -75,7 +79,7 @@ export function InitDataPage() {
<>
This page displays application
{' '}
<Link href="https://docs.telegram-mini-apps.com/platform/launch-parameters">
<Link href="https://docs.telegram-mini-apps.com/platform/init-data">
init data
</Link>
.
Expand Down

0 comments on commit 511d811

Please sign in to comment.