-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add New Icons #2288
Draft
renatamottam
wants to merge
25
commits into
main
Choose a base branch
from
feat/new-icons
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
feat: Add New Icons #2288
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4be231f
feat: Organizes icons files
renatamottam 8ce60cb
fix: `Info` and `ArrowUpRight` icons
renatamottam ae104da
feat: add all new icons
renatamottam 9f7d641
feat: Updates `Icon` component to accept new format
renatamottam 0c1e4b1
fix: Add missing icons on the doc list
renatamottam ffba1c9
doc: Update Icons page on old doc
renatamottam 635aef2
fix: Updates icon naming to use kebab case
renatamottam 6ed52bf
chore: Replace icons props (#2292)
hellofanny 0050f44
feat: change `circle-wavy` to `seal`
renatamottam be64eb6
test: temporarily disable documentation redirects
renatamottam 5d7f29f
test: temporarily disable documentation redirects
renatamottam 38c6d17
fix: Icons ordering
renatamottam 7c2ed4d
fix: IconItem documentation
renatamottam 4dbf641
feat: add `Social` and `PaymentMethod` icons' sizes
renatamottam e8a34c4
fix: `PaymentMethod` icon size
renatamottam d8529a0
fix: Change `pay-method` to `flag` and add new icon flag size
renatamottam 01c8569
fix: Couple Icons sizes after svg update
renatamottam 0ca3825
fix: remove `Tag` icon styles
renatamottam 0b52adb
feat: Adds new icon size
renatamottam 105e27d
fix: EmptyState example
renatamottam 25caf5a
fix: `Gift` icon
renatamottam f094194
fix: `fs/core` Icon references
renatamottam 839a50c
docs: Reverse `EmptyState` page
renatamottam 8ecd18e
fix: `Select` padding after icon change
renatamottam 1047ad2
fix: `EmptyState` icon size
renatamottam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { NextResponse, NextRequest } from 'next/server' | ||
|
||
export function middleware(request: NextRequest) { | ||
const { pathname } = new URL(request.url) | ||
if (pathname.startsWith('/docs')) { | ||
return NextResponse.redirect( | ||
`https://developers.vtex.com/docs/guides/faststore${pathname.replace( | ||
'/docs', | ||
'' | ||
)}` | ||
) | ||
} | ||
if (pathname.startsWith('/components')) { | ||
return NextResponse.redirect( | ||
`https://developers.vtex.com/docs/guides/faststore${pathname | ||
.replace('/components', '') | ||
.replace(/\/([^\/]*)\//, '/$1-')}` | ||
) | ||
} | ||
// const { pathname } = new URL(request.url) | ||
// if (pathname.startsWith('/docs')) { | ||
// return NextResponse.redirect( | ||
// `https://developers.vtex.com/docs/guides/faststore${pathname.replace( | ||
// '/docs', | ||
// '' | ||
// )}` | ||
// ) | ||
// } | ||
// if (pathname.startsWith('/components')) { | ||
// return NextResponse.redirect( | ||
// `https://developers.vtex.com/docs/guides/faststore${pathname | ||
// .replace('/components', '') | ||
// .replace(/\/([^\/]*)\//, '/$1-')}` | ||
// ) | ||
// } | ||
return NextResponse.next() | ||
} |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎗️ TODO: uncomment this part when merging.