Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_PLACEHOLDER": "This is a space to take notes. Choose “Edit” and start writing.",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_PLACEHOLDER_EMPTY_TEXTAREA": "Click on edit button to edit",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_TITLE": "Notes",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_BUTTON": "Try a different search",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_DESCRIPTION": "Try expanding your research by selecting fewer filters.",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_TITLE": "There are no findings matching these filters.",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_SUBTITLE": "The major results and findings on user experience",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_TITLE": "Key points",
"__CAMPAIGN_PAGE_INSIGHTS_SHOW_LESS_LABEL": "Show less",
Expand Down
3 changes: 3 additions & 0 deletions src/locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_PLACEHOLDER": "Questo è uno spazio per prendere appunti. Vai su “Modifica” per cominciare a scrivere",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_PLACEHOLDER_EMPTY_TEXTAREA": "Inizia a scrivere...",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_COMMENT_CARD_TITLE": "Note",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_BUTTON": "Fai un’altra ricerca",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_DESCRIPTION": "Prova ad ampliare la ricerca e a selezionare meno filtri.",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_TITLE": "Non ci sono scoperte con questi filtri.",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_SUBTITLE": "Cosa abbiamo scoperto dell’esperienza utente",
"__CAMPAIGN_PAGE_INSIGHTS_SECTION_TITLE": "Punti principali",
"__CAMPAIGN_PAGE_INSIGHTS_SHOW_LESS_LABEL": "Mostra meno",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { Button, LG, MD } from '@appquality/unguess-design-system';
import { useTranslation } from 'react-i18next';
import styled from 'styled-components';
import { appTheme } from 'src/app/theme';
import { ReactComponent as EmptyImg } from './assets/no-findings.svg';

const Container = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: ${({ theme }) => `${theme.space.xxl} 0`};
`;

export const Empty = ({ onClick }: { onClick: () => void }) => {
const { t } = useTranslation();

return (
<Container>
<EmptyImg />
<LG
style={{
color: appTheme.palette.blue[600],
marginTop: appTheme.space.md,
}}
>
{t('__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_TITLE')}
</LG>
<MD
style={{
color: appTheme.palette.grey[500],
margin: `${appTheme.space.md} auto`,
}}
>
{t('__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_DESCRIPTION')}
</MD>
<Button isAccent isPrimary size="medium" onClick={onClick}>
{t('__CAMPAIGN_PAGE_INSIGHTS_SECTION_EMPTY_BUTTON')}
</Button>
</Container>
);
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.