-
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.
[friends-native] vivid_ios api 제거 (#194)
- Loading branch information
Showing
4 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
apps/friends-react-native/src/infrastructures/createColorRepository.ts
This file was deleted.
Oops, something went wrong.
19 changes: 12 additions & 7 deletions
19
apps/friends-react-native/src/infrastructures/createColorService.ts
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,12 +1,17 @@ | ||
import { ColorRepository } from '../repositories/colorRepository'; | ||
import { ColorService } from '../usecases/colorService'; | ||
|
||
export const createColorService = ({ | ||
repositories: [colorRepository], | ||
}: { | ||
repositories: [ColorRepository]; | ||
}): ColorService => { | ||
export const createColorService = (): ColorService => { | ||
return { | ||
getColorPalette: () => colorRepository.getColorPalette().then((res) => res.colors), | ||
getColorPalette: () => [ | ||
{ fg: '#ffffff', bg: '#e54459' }, | ||
{ fg: '#ffffff', bg: '#f58d3d' }, | ||
{ fg: '#ffffff', bg: '#fac52d' }, | ||
{ fg: '#ffffff', bg: '#a6d930' }, | ||
{ fg: '#ffffff', bg: '#2bc366' }, | ||
{ fg: '#ffffff', bg: '#1bd0c9' }, | ||
{ fg: '#ffffff', bg: '#1d99e9' }, | ||
{ fg: '#ffffff', bg: '#4f48c4' }, | ||
{ fg: '#ffffff', bg: '#af56b3' }, | ||
], | ||
}; | ||
}; |
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,5 +1,5 @@ | ||
import { Color } from '../entities/color'; | ||
|
||
export type ColorService = { | ||
getColorPalette: () => Promise<Color[]>; | ||
getColorPalette: () => Color[]; | ||
}; |