Skip to content

Commit

Permalink
chore: link for create collection (picktoss#272)
Browse files Browse the repository at this point in the history
* fix: 퀴즈 노트 진입 시, 전체 노트 표시

* chore: link for create collection
  • Loading branch information
rabyeoljji committed Nov 23, 2024
1 parent 84e5ee3 commit d5427e1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
4 changes: 3 additions & 1 deletion src/app/(routes)/collections/(main)/@header/default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const Header = () => {
</div>
<div className="flex items-center gap-[16px]">
<Icon name="search" className="size-[24px]" />
<Icon name="write-document" className="size-[24px]" />
<Link href="/collections/create">
<Icon name="write-document" className="size-[24px]" />
</Link>
</div>
</div>
</header>
Expand Down
2 changes: 1 addition & 1 deletion src/features/collection/components/my-collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MyCollection = () => {
<CollectionList>
{activeTab === 'create-collection' && (
<Link
href="#"
href="/collections/create"
className="flex flex-col items-center gap-[12px] rounded-[16px] border-[3px] border-dashed border-border-default pt-[70px]"
>
<Icon name="plus-circle" className="size-[24px]" />
Expand Down
7 changes: 1 addition & 6 deletions src/features/directory/contexts/directory-context.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useDirectories } from '@/requests/directory/hooks'
import { PropsWithChildren, createContext, useContext, useEffect, useMemo, useState } from 'react'
import { PropsWithChildren, createContext, useContext, useMemo, useState } from 'react'

interface DirectoryContextValues {
directories: Directory.List
Expand All @@ -17,11 +17,6 @@ export function DirectoryProvider({ children }: PropsWithChildren) {
const { data } = useDirectories()
const [selectedDirectoryId, selectDirectoryId] = useState<number | null>(null)

useEffect(() => {
if (!data) return
selectDirectoryId(data.directories[0].id)
}, [data])

const values = useMemo(
() => ({
directories: data?.directories || [],
Expand Down
30 changes: 21 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1564,10 +1564,10 @@
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz"
integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==

"@esbuild/win32-x64@0.23.1":
"@esbuild/darwin-arm64@0.23.1":
version "0.23.1"
resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz"
integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz"
integrity sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==

"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
version "4.4.0"
Expand Down Expand Up @@ -1673,10 +1673,17 @@
resolved "https://registry.npmjs.org/@icons/material/-/material-0.2.4.tgz"
integrity sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw==

"@img/sharp-win32-x64@0.33.5":
"@img/sharp-darwin-arm64@0.33.5":
version "0.33.5"
resolved "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz"
integrity sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==
resolved "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz"
integrity sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==
optionalDependencies:
"@img/sharp-libvips-darwin-arm64" "1.0.4"

"@img/[email protected]":
version "1.0.4"
resolved "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz"
integrity sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==

"@isaacs/cliui@^8.0.2":
version "8.0.2"
Expand Down Expand Up @@ -1905,10 +1912,10 @@
dependencies:
glob "10.3.10"

"@next/swc-win32-x64-msvc@14.1.4":
"@next/swc-darwin-arm64@14.1.4":
version "14.1.4"
resolved "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.4.tgz"
integrity sha512-4Rto21sPfw555sZ/XNLqfxDUNeLhNYGO2dlPqsnuCg8N8a2a9u1ltqBOPQ4vj1Gf7eJC0W2hHG2eYUHuiXgY2w==
resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.4.tgz"
integrity sha512-ubmUkbmW65nIAOmoxT1IROZdmmJMmdYvXIe8211send9ZYJu+SqxSnJM4TrPj9wmL6g9Atvj0S/2cFmMSS99jg==

"@nodelib/[email protected]":
version "2.1.5"
Expand Down Expand Up @@ -7583,6 +7590,11 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down

0 comments on commit d5427e1

Please sign in to comment.