Skip to content

Commit

Permalink
Merge pull request #71 from Trendyol/feat/adding-icon
Browse files Browse the repository at this point in the history
feat(icon): add take-away icon
  • Loading branch information
pinarkizilarslan authored Nov 28, 2024
2 parents f2883ff + ad7dcf9 commit 0d5b0cf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/stories/components/icon.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ Icon names are in the list, fixed and cannot be used outside the list.
`store`,
`suitcase`,
`support`,
`take-away`,
`ticket`,
`truck`,
`turn-back`,
Expand Down
1 change: 1 addition & 0 deletions src/components/Icon/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const iconList = [
'store',
'suitcase',
'support',
'take-away',
'ticket',
'truck',
'turn-back',
Expand Down
21 changes: 21 additions & 0 deletions src/icons/TakeAway.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import * as React from 'react';
import Svg, { SvgProps, Path } from 'react-native-svg';
const SvgTakeAway = (props: SvgProps) => (
<Svg
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}>
<Path
d="M2 .917C2 .41 2.407 0 2.91 0h18.18c.503 0 .91.41.91.917V2.75a.913.913 0 0 1-.91.917H2.91A.913.913 0 0 1 2 2.75V.917ZM3.667 5h6.515v2.424c0 .34.355.563.658.41l.957-.482a.451.451 0 0 1 .406 0l.957.482a.455.455 0 0 0 .658-.41V5h6.515l1.19 3.429c.316 1.042.477 2.125.477 3.214v.802a4.59 4.59 0 0 0-2.778.86c-.395.283-.727.534-1.032.765-.603-1.701-3.272-2.554-4.532-2.767-1.094-.149-2.428-.33-3.726-.3-1.81.042-3.352.338-4.835.983-.838-.561-1.873-.83-2.884-.83-.068 0-.136.001-.202.004.04-.926.196-1.844.465-2.731l1.19-3.429Z"
fill={props?.fill ?? '#273142'}
/>
<Path
d="M4.258 22.483c-.217.91-1.07 1.516-2.331 1.516C.863 24 0 23.123 0 22.043V15.12c0-1.08.863-1.956 1.927-1.956 1.284 0 2.145.63 2.343 1.568l.032-.021c1.742-1.164 3.383-1.656 5.626-1.709 1.493-.036 2.938.246 4.401.423 1.076.13 1.957.995 1.957 2.056 0 .937-.688 1.737-1.632 1.889-1.378.222-3.18.502-3.517.502.35.013 3.473.2 3.821.192 2.338-.055 4.105-1.775 5.888-3.09.852-.628 1.967-.603 2.719.137.835.82.393 2.325-.687 3.388-1.746 1.719-3.063 3.097-5.384 3.98-3.349 1.276-6.458.675-9.844.02-1.127-.218-2.26-.073-3.392-.016Z"
fill={props?.fill ?? '#273142'}
/>
</Svg>
);
export default SvgTakeAway;
1 change: 1 addition & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export { default as StorePerformance } from './StorePerformance';
export { default as Store } from './Store';
export { default as Suitcase } from './Suitcase';
export { default as Support } from './Support';
export { default as TakeAway } from './TakeAway';
export { default as Ticket } from './Ticket';
export { default as Truck } from './Truck';
export { default as TurnBack } from './TurnBack';
Expand Down
5 changes: 5 additions & 0 deletions src/svg-icons/take-away.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0d5b0cf

Please sign in to comment.