Skip to content

Commit ec446a7

Browse files
committed
add ai card to default cards and js as default language
1 parent dc97aef commit ec446a7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/stores/preferences.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,19 @@ const defaultStorage: StateStorage = {
9898
export const useUserPreferences = create(
9999
persist<UserPreferencesState & UserPreferencesStoreActions>(
100100
(set, get) => ({
101-
userSelectedTags: [],
101+
userSelectedTags: [
102+
{
103+
value: 'javascript',
104+
label: 'Javascript',
105+
githubValues: ['javascript'],
106+
confsValues: ['javascript'],
107+
devtoValues: ['javascript'],
108+
hashnodeValues: ['javascript'],
109+
mediumValues: ['javascript'],
110+
redditValues: ['javascript'],
111+
freecodecampValues: ['javascript'],
112+
},
113+
],
102114
cardsSettings: {},
103115
maxVisibleCards: 4,
104116
theme: 'dark',
@@ -111,7 +123,7 @@ export const useUserPreferences = create(
111123
cards: [
112124
{ id: 0, name: 'github', type: 'supported' },
113125
{ id: 1, name: 'hackernews', type: 'supported' },
114-
{ id: 2, name: 'devto', type: 'supported' },
126+
{ id: 2, name: 'ai', type: 'supported' },
115127
{ id: 3, name: 'producthunt', type: 'supported' },
116128
],
117129
userCustomCards: [],

0 commit comments

Comments
 (0)