-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from pkolt/47-change-button-list-on-home-page
47-change-button-list-on-home-page
- Loading branch information
Showing
5 changed files
with
69 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
import { PageUrl } from '@/constants/urls'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { Link } from 'react-router-dom'; | ||
import Dropdown from 'react-bootstrap/Dropdown'; | ||
|
||
export const ButtonList = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<div className="d-flex flex-column gap-3"> | ||
<div className="d-flex flex-column gap-3 w-25"> | ||
<Link to={PageUrl.CreateBitmap} className="btn btn-primary btn-lg"> | ||
{t('Create new bitmap')} | ||
</Link> | ||
<Link to={PageUrl.ImportFromImage} className="btn btn-primary btn-lg"> | ||
{t('Import from image')} | ||
</Link> | ||
<Link to={PageUrl.ImportFromCollections} className="btn btn-primary btn-lg"> | ||
{t('Import from collections')} | ||
</Link> | ||
<Link to={PageUrl.ImportFromJson} className="btn btn-primary btn-lg"> | ||
{t('Import from JSON')} | ||
{t('Create')} | ||
</Link> | ||
<Dropdown align="end"> | ||
<Dropdown.Toggle size="lg" className="w-100"> | ||
{t('Import')} | ||
</Dropdown.Toggle> | ||
<Dropdown.Menu> | ||
<Dropdown.Item as={Link} to={PageUrl.ImportFromImage}> | ||
{t('From image')} | ||
</Dropdown.Item> | ||
<Dropdown.Item as={Link} to={PageUrl.ImportFromCollections}> | ||
{t('From collections')} | ||
</Dropdown.Item> | ||
<Dropdown.Item as={Link} to={PageUrl.ImportFromJson}> | ||
{t('From JSON')} | ||
</Dropdown.Item> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</div> | ||
); | ||
}; |
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