Skip to content
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

fix: Model/weight method links not properly rendered #1509

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface MethodLinkProps {

const METHOD_TYPE_TO_I18N_KEY: { [key in MethodLinkType]: I18nKeys } = {
source_code: 'sourceCode',
model_weights: 'modelWeights',
models_weights: 'modelWeights',
website: 'website',
documentation: 'documentation',
other: 'other',
Expand All @@ -28,7 +28,7 @@ export const ICON_MAP: { [key in MethodLinkType]: ReactNode } = {
source_code: (
<SourceCodeIcon className="w-sds-icon-s h-sds-icon-s inline-block" />
),
model_weights: (
models_weights: (
<WeightsIcon className="w-sds-icon-s h-sds-icon-s inline-block" />
),
website: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MethodType } from 'app/constants/methodTypes'
// note: below is also used for ordering in lists
export const METHOD_LINK_TYPES = [
'source_code',
'model_weights',
'models_weights',
'website',
'documentation',
'other',
Expand Down
Loading