Skip to content

Commit

Permalink
CORE: fix upload pdf (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Sep 4, 2024
1 parent db84d1c commit fdfad17
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
4 changes: 2 additions & 2 deletions design-v2/components/membership-table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Price = ({ tag: Tag = 'span', price, className }) => (
)

const MembershipTable = observe(
({ className, headerAlignment, textData, type = 'details' }) => {
({ className, headerAlignment, textData, renderSpan, type = 'details' }) => {
const headerNames = textData.headers.map((header) => header.name).slice(1)
const { membership } = useStore()

Expand All @@ -33,7 +33,7 @@ const MembershipTable = observe(
{textData.headers.map((header, index) => (
<th
key={header.name}
colSpan={index !== 0 ? 2 : 1}
colSpan={index !== 0 && renderSpan ? 2 : 1}
className={classNames.use(styles.header, {
[styles.headerActive]:
membership.data.planName === header.name.toLowerCase(),
Expand Down
26 changes: 22 additions & 4 deletions netlify-cms.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,9 @@ collections:
- name: url
label: URL
widget: file
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
label: Target
widget: string
Expand Down Expand Up @@ -2345,7 +2348,10 @@ collections:
widget: string
- name: url
label: URL
widget: string
widget: file
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
label: Target
widget: string
Expand Down Expand Up @@ -2746,7 +2752,10 @@ collections:
widget: string
- name: url
label: URL
widget: string
widget: file
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
label: Target
widget: string
Expand Down Expand Up @@ -3086,7 +3095,10 @@ collections:
widget: string
- name: url
label: URL
widget: string
widget: file
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
label: Target
widget: string
Expand Down Expand Up @@ -3392,7 +3404,10 @@ collections:
widget: string
- name: url
label: URL
widget: string
widget: file
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
label: Target
widget: string
Expand Down Expand Up @@ -4723,6 +4738,9 @@ collections:
widget: string
label: URL
required: false
media_folder: '/images/pdfs'
public_folder: '/images/pdfs'
extensions: [ 'pdf' ]
- name: target
widget: string
label: Target
Expand Down
1 change: 1 addition & 0 deletions templates/membership/prices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const MembershipPricesPageTemplate = observe(({ data }) => {
}}
type="prices"
className={styles.feeSectionTable}
renderSpan
/>
<Markdown className={styles.feeSectionNote}>
{data.header.note}
Expand Down

0 comments on commit fdfad17

Please sign in to comment.