Skip to content

Commit

Permalink
Change intro screen message
Browse files Browse the repository at this point in the history
  • Loading branch information
durasj committed May 14, 2020
1 parent 44e54db commit 25fcf20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cypress/integration/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Main Screen', function () {

cy.title().should('be', 'Octosign');

cy.contains('Sign a new document');
cy.contains('Select your file');

cy.contains('Select files');
cy.contains('or drag and drop your files anywhere');
Expand Down Expand Up @@ -35,9 +35,9 @@ describe('Main Screen', function () {
it('Allows selecting file by drag and drop', function () {
cy.visit('/');

cy.contains('Sign a new document');
cy.contains('Select your file');

cy.contains('Sign a new document').trigger('dragenter', {
cy.contains('Select your file').trigger('dragenter', {
force: true,
dataTransfer: { files: [testFile], types: ['Files'] },
});
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/FilesArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const FilesArea: FC<Props> = ({
{files.length === 0 ? (
<Box marginBottom={1.5}>
<Typography align="center" color={isDragActive ? 'secondary' : 'primary'} variant="h2">
{isDragActive ? t('Drop your files here') : t('Sign a new document')}
{isDragActive ? t('Drop your files here') : t('Select your file')}
</Typography>
</Box>
) : (
Expand Down
6 changes: 3 additions & 3 deletions translations/en-US.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2020-05-13T22:19:58.506Z\n"
"PO-Revision-Date: 2020-05-13T22:19:58.507Z\n"
"POT-Creation-Date: 2020-05-14T18:42:25.121Z\n"
"PO-Revision-Date: 2020-05-14T18:42:25.121Z\n"

msgid "Errored during operation: \"{{error}}\"."
msgstr ""
Expand Down Expand Up @@ -71,7 +71,7 @@ msgstr ""
msgid "Drop your files here"
msgstr ""

msgid "Sign a new document"
msgid "Select your file"
msgstr ""

msgid "Logo"
Expand Down

0 comments on commit 25fcf20

Please sign in to comment.